worktrees
Installation
SKILL.md
Git Worktrees
All worktrees go in ~/.worktrees/<repo-name>/<slug>/ — outside the project, no .gitignore needed.
Workflow
1. Create the worktree
MAIN_REPO="$(git rev-parse --show-toplevel)"
REPO_NAME="$(basename "$MAIN_REPO")"
WORKTREE="$HOME/.worktrees/$REPO_NAME/<slug>"
mkdir -p "$(dirname "$WORKTREE")"
git worktree add -b <branch-name> "$WORKTREE" <base-branch>
cd "$WORKTREE"
Derive <slug> from the branch name (e.g. fix/IH-694-missing-icon -> ih-694).