Downloads the latest work from your team’s shared project.
Usage
Arguments
Options
First time using fetch
The first time, you need to tell Anchor4Git where the project is:
After the first time, you can just run:
Anchor4Git remembers the address from then on.
Normal use (recommended)
Just run ag fetch to get the latest:
What happens:
- If you have unsaved changes, they are automatically saved first
- The latest work from the team is downloaded
- Any differences are merged into your files
- You’re ready to keep working
Force mode (replace everything)
If you want to throw away your local changes and get exactly what the team has:
Warning: This will delete any changes you haven’t saved.
Preview mode
To see what would happen without actually doing it:
This shows you:
- The project address
- Whether your workspace has unsaved changes
- What files would change
- Whether the team’s project is empty
What if there are conflicts?
Sometimes your changes and the team’s changes affect the same parts of the same file. When this happens, you’ll see a message like:
Don’t panic! Open the listed files in your editor. You’ll see markers like:
Edit the file to keep what you want, remove the markers, then save the file and run:
See the Workflows page for more on handling conflicts.
Examples
Last modified on July 19, 2026