Sync a feature branch onto the latest origin base branch via git rebase, with safety rails, deliberate conflict resolution, and safe force-with-lease pushing.
86
Quality
80%
Does it follow best practices?
Impact
99%
1.67xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./data/skills-md/0xbigboss/claude-code/git-rebase-sync/SKILL.mdUse this skill when you need to sync a feature branch onto the latest origin/{base_branch} via git rebase, including conflict resolution with explicit clarification questions when intent is ambiguous.
dev or main).git rebase ..., git push --force*), print the exact command(s) you will run and wait for my confirmation.git push --force-with-lease, never plain --force.git branch --show-currentgh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'git fetch origingit statusgit status indicates an in-progress merge/rebase/cherry-pick, stop and ask what to do (abort vs continue).HEAD:
git tag -a {branch_name}-rebase-backup-$(date +%Y%m%d-%H%M%S) -m "pre-rebase backup" HEAD{backup_ref} for recovery.git rev-list --count --merges origin/{base_branch}..HEAD--rebase-merges) or flatten them (plain rebase).git rebase origin/{base_branch}git rebase --rebase-merges origin/{base_branch}When conflicts happen:
git statusgit add <file...>git rebase --continueHelpful commands during conflicts:
git diffgit showgit rebase --abort (this is safe and should be preferred over destructive resets)git log --oneline --decorate origin/{base_branch}..HEADgit push --force-with-lease origin HEAD:{branch_name}{backup_ref} to restore the pre-rebase state.git reset --hard) unless I explicitly confirm after you show the exact command.5342bca
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.