Sync current feature branch with latest changes from main
/plugin marketplace add hanibalsk/claude-marketplace/plugin install pr-toolkit@hanibalsk-marketplaceSafely synchronize the current feature branch with the latest changes from main.
BRANCH=$(git branch --show-current)
git status --short
Verify:
git fetch origin main
Check if branch has been pushed:
git rev-parse --abbrev-ref @{upstream} 2>/dev/null
git merge origin/main (safer for shared branches)git rebase origin/main (cleaner history)# For rebase (local branches):
git rebase origin/main
# For merge (pushed branches):
git merge origin/main --no-edit
If conflicts occur:
git diff --name-only --diff-filter=Ugit checkout --theirs <file>git checkout --ours <file>git rebase --abort or git merge --abortgit log --oneline -5
Announce via TTS:
.claude/hooks/play-tts.sh "Branch synced with main successfully"
/sync-main - Sync current branch with origin/main/sync-main rebase - Force rebase strategy/sync-main merge - Force merge strategy