It seems you have to close VS and re-open it before it notices that the Git branch structue has changed. Not impressed.
In VS2022 Community the Git "new branch" command doesn't work
Peter Toye
191
Reputation points
I've created a project and have put it into a local Git repo. I want to create a new branch called "SetClear", so went through the "Git | new Branch" procedure. But it didn't switch to the new branch and looking at the branch list it's not there. See screenshot "VS Git branches". So I tried again, and was told that the branch already existed. See screenshot "VSGit Failure messaage".
So now I'm in a bind: I can't use the branch, but creating a new one doesn't work either. Any ideas how to get out of it?