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

后端 未结 6 786
被撕碎了的回忆
被撕碎了的回忆 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:06

    Note that this also happens if your $pwd has links in it. git should probably readlink -f on the $pwd prior to checking.

    Edit: Or this may indeed be because I missed to call git worktree prune. Now it's working.

提交回复
热议问题