Something I'm having a hard time to understand:
how do I work with git worktrees in VS-code ?
I apparently cannot make it work.
I've tried using the command line ... but then when I try to checkout to the desired branch, it tells me:
Error: Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false checkout sequences --
fatal: 'sequences' is already checked out at
and when I change folder in command line like on so many videos (outside of vs-code) ... it stays with the same branch check-out.
Can somebody help me out or point me to a resource / blog that indicate how to proceed or how to configure to get git worktree working with vs-code ?
you can check this issue for your question https://github.com/microsoft/vscode/issues/68038 from terminal you can work
git --bare
git worktree list
git worktree add <branch>
git worktree remove <branch>
...
https://git-scm.com/docs/git-worktree#:~:text=In%20its%20simplest%20form%2C%20git,at%20path%20..%2Fhotfix%20.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With