After installing the new Visual Studio 2022 the built-in Git support has suddenly stopped working. For one of the projects I am seeing only a submodule instead of the main repository. For another project the built-in Git panel doesn't appear at all, displaying some cryptic message about "SccProviderPackage" stating that "One or more errors occurred" as a reason...
Spent a while following every single advice I could find about similar issues with no luck.
CodePudding user response:
In the end I had decided to give up and try Git Extensions from GitHub instead. There I finally see the exact error message (for some reason, it was in the "Remotes" list instead of the actual list of remotes, but at least it was there).
The cause was that Git didn't consider directories with my repos "safe". So the solution is to add your repositories to the safe directories using the following command:
git config --global --add safe.directory /path/to/the/repo
Hope this helps someone who will be stuck with this issue like me.
CodePudding user response:
Opening the VS in admin mode solved the issue for me. Hope that helps.