git sync updates all local branches from their remotes.
Install with brew.
$ brew install arbourd/tap/git-syncRequires git 2.36 or newer.
$ git sync [options]| Option | Description |
|---|---|
--prune |
Delete merged branches whose upstream is gone |
-h, --help |
Show usage |
-v, --version |
Show the version |
# Fetch, then fast-forward every local branch
$ git sync
Updated branch main (was 8915328).
Updated branch feature-123 (was 7c24329).
# Also delete merged branches whose upstream is gone
$ git sync --prune
Deleted branch feature-123 (was 7c24329).An agent skill is included.
git-sync is an extraction of the sync command from github/hub and retains its original MIT license.