Create another working tree for a branch.
Section: Worktrees, Submodules, and Sparse Checkout
Add worktree for branch
bash
bash
git worktree add ../repo-feature feature/my-changeLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Worktrees, Submodules, and Sparse Checkout