Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, May 27, 2020 8:08 AM
Hi,
If I add a branch using git worktree add -b <branch> folder, I would expect to be able to check it out by clicking on the branch menu in the bottom right hand corner of Visual Studio 2019 and then selecting the branch. However, I get a small message box stating: Git failed with a fatal error. 'branch4 is already checked out at r:/prog-br2.
This seems wrong to me - but should I expect this?
Thanks
A.
All replies (1)
Thursday, May 28, 2020 7:16 AM
Hi Ams,
Welcome to MSDN forum.
I think this issue is related to the command of ‘git worktree’. Not sure if this command will help to check out the branch as an action automatically, perhaps you need to check this doc: git-worktree (Commands: add <path> [<commit-ish>]).
In addition, since our forum discusses about the usage of tools and editors in Visual Studio, I suggest you go to Stack Overflow tagged with git and start a new thread there to seek for a more professional help.
Feel free to contact me if you have any concern.
Best Regards,
Tianyu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].