Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Git Worktree

git worktree add <path> [<branch>]

warning, worktrees are not added to gitignore automatically, make sure to add them. echo ".worktree" >> .gitignore

.git
.gitignore
.worktrees
L tree1

so usually

mkdir .worktree
echo ".worktree" >> .gitignore
git worktree add .worktree/tree2 main