I create a worktree for the branch using the following command:
Git add worktree <path> <branch-name>
This created a new working line for me and checked the branch in the path
Now I thought about deleting / deleting the working line. Run the following commands:
rm -rf <path> git worktree prune
This should ideally remove the working line and remove the link for this path. So now I should be able to check the branch. But when I run the following command to check this branch:
git checkout <branch-name>
I get this error:
fatal: '<branch-name>' is already checked out at ''
Can someone help me with what is happening.
git github
Randeep Oct 23 '15 at 6:35 2015-10-23 06:35
source share