Sync Branch banner
Apupsis Apupsis

Sync Branch

Git community

Description

--- description: Sync feature branch with the latest main branch. argument-hint: [target] --- 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: ```bash git rebase origin/${target:-main} ``` 4. Resolve any conflicts, rerun `/review` and `/security-scan` afterwards. 5. Force-with-lease push to update the PR: ```bash git push --force-with-lease origin $(git branch --s

Installation

Installs to ~/.claude/commands/apupsis-claude-code-skill-factory-sync-branch.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Apupsis/claude-code-skill-factory/HEAD/.claude/commands/sync-branch.md -o ~/.claude/commands/apupsis-claude-code-skill-factory-sync-branch.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository