'' is already checked out at '' in git worktrees

后端 未结 6 763
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 15:31

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: \'

        
6条回答
  •  囚心锁ツ
    2020-12-14 16:17

    Since you cannot checkout twice in both worktree and the original repository. How about checkout original repo to somewhere else before you checkout the worktree?

    git -C  checkout ~1
    git -C  checkout 
    

提交回复
热议问题