My Ubuntu installation of the VS Code editor states it has no active source control providers:
I'm using Ubuntu, and running
$ git --version
indicates it is v2.18.0
There is a .git folder in my project.
How do I fix this problem?
My Ubuntu installation of the VS Code editor states it has no active source control providers:
I'm using Ubuntu, and running
$ git --version
indicates it is v2.18.0
There is a .git folder in my project.
How do I fix this problem?
Two other answers explore setting the path to the git executable in VS Code here and originally here and others. Apparently in Windows this is necessary. (As opposed to linux where the git.path
is null
, but perhaps git is called from PATH
)
To reiterate, please verify that your settings in VS Code (File -> Preferences -> Settings or F1 (Open command palatte) -> Settings) contains the following somewhere:
{
// Is git enabled
"git.enabled": true,
// Path to the git executable
"git.path": "C:\\path\\to\\git.exe"
}
Note that you'd have to change settings in the right hand window, which override the default ones in the left hand one.