Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 939 Bytes

sync.md

File metadata and controls

37 lines (26 loc) · 939 Bytes

Sync command

Updates the current branch with all relevant changes
Synchronizes 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.

Usage

git town sync

Flags

--all       Sync all local branches
--dry-run   Output the commands that would be run without them