'<Branch>' is already checked out at '</other/location>' in git worktrees
问题 I started using git worktrees. It seems to work, but I'm getting this error when attempting to check out a branch in the cloned worktree: fatal: '<branch>' is already checked out at '</other/location>' How do I get around this without deleting the .git/worktrees directory? 回答1: Git won't let you check out the same branch twice, because if you do, and then go to one of the two work-trees and make a new commit, you'll set yourself up for misery when you go back to the other work-tree. If you