Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git missing in VS Code – No source control providers

I just installed Visual Studio Code 1.17 and opened a Git repository folder. When entering the Source Control tab I see a message "There are no active source control providers". I thought Git was baked into VSCode!?

To make matters worse, when I attempt to install additional SCM providers there is no option for Git. How do I get my Git back!?

Visual Studio Code, displaying “No source control providers”

like image 340
ChiliYago Avatar asked Oct 06 '17 15:10

ChiliYago


People also ask

How do I enable source control in VS Code?

Launch VS code, and in the left-hand menu, click on the Source Control icon for Git. It gives two options – Open Folder and Clone Repository. We can open a git repository folder or clone from a GitHub URL. We already set up a GitHub repository in the previous article.

Why is Visual Studio not showing source control?

If you don't see the checkbox for adding to source control – Git or Visual Studio Team Services, you can enable this from Options settings. From the main menu, Tools -> Options and then navigate to. Under the Plug-in Selection, you will find it is already set to “None.

How do I get the VS Code to recognize Git?

Step 1: Go to the Settings in vscode. Step 2: Open settings. json. Step 4: just add the directory path where git is installed in your system.

Why Git branch is not showing in VS Code?

So you manually create a branch from the Git itself. After cloning the project to your computer, If you open the project with Visual Studio Code, and when you try to change the branch, you might see your created branch is not in the list. This is a common issue and usually happens in VS Code IDE.


3 Answers

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

like image 116
johnwp Avatar answered Oct 17 '22 07:10

johnwp


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!!

screencapture

like image 41
Rel Avatar answered Oct 17 '22 09:10

Rel


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:

git icon

like image 38
torvin Avatar answered Oct 17 '22 09:10

torvin