Why does this command fail?
$ git worktree add ../wt main fatal: 'main' is already used by worktree at 'D:/repo/app'
- The folder
../wtalready exists - Worktree paths must be inside the repository
mainis a protected default branch- A branch can be in one worktree at a time
Git refuses to check out the same branch in two worktrees. Use another branch,
Play Git ▸
-b <new>, or --detach.