Agent skill

git-advanced

Advanced git workflows including worktrees, bisect, interactive rebase, hooks, and recovery techniques

Rohit Ghumare82,766★ · +2,021/wk · 9 repos on radarProfile →
claude-codeApache-2.0
Install
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.

Facts
Files in the skill folder: 1
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/git-advanced/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,438
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Worktrees
  2. Bisect
  3. Interactive Rebase
  4. Git Hooks
  5. Recovery Techniques
  6. Useful Aliases
  7. Anti-Patterns
  8. Checklist
Commands it runs
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
More from awesome-claude-code-toolkit
All skills →
About this skill
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.

Keep going