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: \'
Note that this also happens if your $pwd has links in it. git should probably readlink -f on the $pwd prior to checking.
$pwd
git
readlink -f
Edit: Or this may indeed be because I missed to call git worktree prune. Now it's working.
git worktree prune