From git-workflows
Advanced git operations beyond add/commit/push. Use when rebasing, bisecting bugs, using worktrees, recovering with reflog, resolving merge conflicts, cherry-picking across branches, or working with monorepos.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-workflows:git-workflowsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Advanced git operations for real-world development.
Advanced git operations for real-world development.
git rebase -i HEAD~5
git rebase -i main
# Commands: pick / reword / edit / squash / fixup / drop
git commit --fixup=a1b2c3d
git rebase -i --autosquash main
git rebase --abort
git bisect start
git bisect bad
git bisect good v1.2.0
git bisect good / bad # per commit
git bisect reset
git bisect run ./test-for-bug.sh
git worktree add ../myproject-hotfix hotfix/urgent-fix
git worktree add ../myproject-feature -b feature/new-thing
git worktree list
git worktree remove ../myproject-hotfix
git worktree prune
git reflog
git reflog show feature/my-branch
git reset --hard ghi789
git branch recovered-branch abc123
git reset --hard HEAD@{2}
git cherry-pick abc123
git cherry-pick abc123 def456 ghi789
git cherry-pick --no-commit abc123
git remote add upstream https://github.com/other/repo.git
git fetch upstream
git cherry-pick upstream/main~3
git cherry-pick --continue
git cherry-pick --abort
git checkout --ours path/to/file.ts && git add path/to/file.ts
git checkout --theirs path/to/file.ts && git add path/to/file.ts
git show :1:path/to/file.ts # base
git show :2:path/to/file.ts # ours
git show :3:path/to/file.ts # theirs
git stash push -m "WIP: refactoring auth flow"
git stash push -m "partial stash" -- src/auth.ts
git stash push -u -m "with untracked"
git stash branch new-feature stash@{0}
git tag -a v1.2.0 -m "Release 1.2.0"
git push origin v1.2.0
git push origin --tags
git tag -d v1.2.0
git push origin --delete v1.2.0
git log -S "function oldName" --oneline
git log -G "TODO.*hack" --oneline
git log --follow --oneline -- src/new-name.ts
git blame -L 50,70 src/auth.ts
git blame -w src/auth.ts
git rebase -i is the single most useful advanced git command.git reflog is your safety net — commits recoverable within 90 days.rerere globally: git config --global rerere.enabled truegit stash push -m "description" is much better than bare git stash..git storage.npx claudepluginhub billyfranklim1/claude-skills --plugin git-workflowsMaster advanced Git workflows: interactive rebase, cherry-picking, bisect, worktrees, and reflog for clean history, collaboration, and recovery.
Guides advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog for managing complex histories, feature collaboration, and recovery.
Provides advanced Git workflows including interactive rebase, cherry-picking, bisect, worktrees, and recovery. Useful when cleaning commit history, synchronizing branches, or fixing Git mistakes.