Git missing in VS Code – No source control providers
Are you using MacOS? If you've updated Xcode lately, you may need to accept Xcode's terms of service agreement to use git.
$ sudo xcodebuild -license accept
Wow I spent so long on this. For me I had to go to the Extensions area > then click the ... at top right of menu > Show built-in Extensions
Git built-in extension was disabled!!
What helped me is setting the value of git.path
setting to the full path of my git.exe
file. After that I was able to see the git logo:
I had this too. tried overriding the default git.path setting but that didn't work. What seemed to fix it for me was opening an existing repository .. just an empty folder that I created and did a 'git init' in at the command prompt. After I opened that folder I could click the Source Control button and it had all the git functions available and no longer said "There are no active source control providers". Furthermore, doing File->Close folder got me back to where I started. Another way was to click the small "branch" button ABOVE that message ("There are no active ...") and initialise a repository. This message is very confusing!