git-advanced

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

Content Preview
---
name: git-advanced
description: Advanced git workflows including worktrees, bisect, interactive rebase, hooks, and recovery techniques
---

# 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
```

W
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/git-advanced.md \
  https://raw.githubusercontent.com/rohitg00/awesome-claude-code-toolkit/main/skills/git-advanced/SKILL.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/rohitg00/awesome-claude-code-toolkit

Then reference at skills/git-advanced/SKILL.md

Related Skills