Updates the current branch with all relevant changesSynchronizes the current branch with the rest of the world.
When run on a feature branch:
- syncs all ancestor branches
- pulls updates for the current branch
- merges the parent branch into the current branch
- pushes the current branch
When run on the main branch or a perennial branch:
- pulls and pushes updates for the current branch
- pushes tags
Additionally, when there is a remote upstream, the main branch is synced with
its upstream counterpart. This can be disabled with
git config git-town.sync-upstream false
.
git town sync
--all Sync all local branches --dry-run Output the commands that would be run without them