workspace <- just a plain directory
├── main <- main checkout
├── branch1
├── branch2
└── branch3
list of worktrees
git worktree list
add a new worktree and a new branch (with the same name) - we are inside the main
directory
git worktree add ../branch4
add a new worktree and checkout an existing branch
git worktree add ../some-worktree some-existing-branch