Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git has stopped working after installing VS 2022

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.

like image 530
mephisto123 Avatar asked Nov 25 '25 13:11

mephisto123


1 Answers

I had the same problem after updating to 17.1.5. I checked the ownership of the folder of my local repository and my project (Working Tree). Setting the ownership to myself fixed the problem.

TO DO THIS:

  1. Right-click on the folder containing the working tree and .git folder.
  2. Click Properties
  3. Go to tab Security.
  4. Click the Advanced button.
  5. Click Change for the owner.
  6. Select your user name.
  7. Check Replace owner on subcontainers and objects.
  8. Click Apply and Ok.

VS can then open the local repository.

like image 199
Arman Avatar answered Nov 27 '25 05:11

Arman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!