Rebase the current git branch on origin/main, integrate any upstream branch commits, and push updated history safely. Use when you need to sync a feature branch with main and its remote tracking branch before continuing work or opening a PR.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Rebase the current git branch on origin/main, integrate any upstream branch commits, and push updated history safely. Use when you need to sync a feature branch with main and its remote tracking branch before continuing work or opening a PR.
disable-model-invocation
true
allowed-tools
Read, Bash(git*:*)
agent
git-ninja
Sync Branch
When to use
Sync a working branch with origin/main and its remote tracking branch.
Resolve rebase conflicts and push updated history safely.
Preflight
git status and git branch --show-current.
If the working tree is not clean, stop and ask whether to stash or commit. Do not rebase with uncommitted changes.
git fetch origin.
Rebase on origin/main
git rebase origin/main.
If conflicts:
Use git status to locate conflicts.
Resolve files, git add <files>, then git rebase --continue.