Install
1
Install the plugin$
npx claudepluginhub softaworks/agent-toolkit --plugin command-sync-branchWant just this command?
Add to a custom plugin, then install with one command.
Description
Sync feature branch with the latest main branch.
Argument
targetCommand Content
- Fetch latest upstream refs:
git fetch origin --prune. - Identify target branch (default
main, or override via argument). - Rebase current branch onto target:
git rebase origin/${target:-main} - Resolve any conflicts
- Force-with-lease push to update the PR:
git push --force-with-lease origin $(git branch --show-current)
Stats
Stars955
Forks70
Last CommitJan 28, 2026
Actions