git-advanced
Advanced git workflows including worktrees, bisect, interactive rebase, hooks, and recovery techniques
npx skills add rohitg00/awesome-claude-code-toolkit --skill git-advanced --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Git Advanced ## Worktrees ```bash # Create a worktree for a feature branch (avoids stashing) git worktree add ../feature-auth feature/auth # Create a worktree with a new branch git worktree add ../hotfix-123 -b hotfix/123 origin/main # List all worktrees git worktree list # Remove a worktree after merging git worktree remove ../feature-auth ``` Worktrees let you work on multiple branches simultaneously without stashing or committing WIP. Each worktree has its own working directory but shares the same `.git` repository. ## Bisect ```bash # Start bisect, mark current as bad and known good commit git bisect start git bisect bad HEAD git bisect good v1.5.0 # Git checks out a midpoint commit. Test it, then mark: git bisect good # if this commit works git bisect bad # if this commit is broken # Automate with a test script git bisect start HEAD v1.5.0 git bisect run npm test # When done, reset git bisect reset ``` Bisect performs binary search across commits to find which commit introduced a bug. Automated bisect with `run` is the fastest approach. ## Interactive Rebase ```bash # Rebase last 5 commits interactively git rebase -i HEAD~5 # Common operations in the editor: # pick - keep co
- Worktrees
- Bisect
- Interactive Rebase
- Git Hooks
- Recovery Techniques
- Useful Aliases
- Anti-Patterns
- Checklist
Create a worktree for a feature branch (avoids stashing) git worktree add ../feature-auth feature/auth Create a worktree with a new branch git worktree add ../hotfix-123 -b hotfix/123 origin/main List all worktrees git worktree list Remove a worktree after merging git worktree remove ../feature-auth Start bisect, mark current as bad and known good commit git bisect start
What does the git-advanced skill do?
Advanced git workflows including worktrees, bisect, interactive rebase, hooks, and recovery techniques
How do I install it?
Run `npx skills add rohitg00/awesome-claude-code-toolkit --skill git-advanced --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rohitg00/awesome-claude-code-toolkit, a repository with 2,438 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.