I did see some things going around about this but answers point to update of visual studio 2017 or 2019. I just updated my VS 2022 issue persists.
I have been coding for a solid 2 months within my master branch. I just went to check in the changes, and I notice it said Select Repository usually where the branches are. In my git options window, I don’t have a branch. When I select my repository, nothing happens, as if I am already in that repository.
I am utilizing my company’s .visualstudio.com which does use Git but it used to be Microsoft’s team foundation service, then they switched to git. Generally, people offer to run some git commands… I am not familiar with that I just use Microsoft’s visual studio GUI to create branches and synch changes in…
Anyways here are a few print screens that might be useful:
Any help would be greatly appreciated!
2
Answers
I ended up just cloning my environment to another folder. Looks like that my .git folder somehow got corrupted. Then I manually moved my code using an application called CompareIT to merge in changes in files I suspected could be some conflicts with my other 2 developers. I was then able to push my changes and sync! Sorry I wish I had a better answer but that is about it!
I just ran into this same thing. Instead of using the Git window, i just selected the picklist at the bottom right corner where it is saying "Select Repository". The repository was in that picklist. I selected it and everything was back to normal…sure freaked the hell outta me…
used this picklist