softaworks avatar

command-sync-branch

Sync feature branch with the latest main branch.

GitHub stars
2.7K

Install

/plugin install command-sync-branch@agent-toolkit

Run it inside Claude Code after adding the marketplace with /plugin marketplace add softaworks/agent-toolkit.

Contents

Commands 1

  1. Fetch latest upstream refs: git fetch origin --prune.
  2. Identify target branch (default main, or override via argument).
  3. Rebase current branch onto target:
    git rebase origin/${target:-main}
    
  4. Resolve any conflicts
  5. Force-with-lease push to update the PR:
    git push --force-with-lease origin $(git branch --show-current)
    

Sponsors

Details

Marketplace
softaworks/agent-toolkit
Source
dist/plugins/command-sync-branch
Category
Commands
Keywords
commands, git, branches, sync

More from softaworks/agent-toolkit

All 56