Installs into .claude/skills of the current project.
Are you the author of 081 Troubleshooting Bfc2a3f0?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-081-troubleshooting-bfc2a3f0)
# Worktree Troubleshooting (Agent Reference)
## Common errors
- **"not a git repository"**
- You are not in `main/`. Change to the repo root and retry.
- **"fatal: A branch named 'X' already exists"**
- Use `git worktree add <path> <branch>` without `-b`.
- **"worktree already exists" / path exists**
- Pick a new directory name or remove the old worktree:
`git worktree remove <path>`
- **"locked" worktree**
- Run `git worktree prune` and retry.
- **Uncommitted changes block checkout**
- Commit, stash, or clean the working tree before creating a new worktree.
## Clean up
```
git worktree list
git worktree prune
```