How to detect git on VSCode without administrator right


When I try to start Visual Studio Code without administrator right, I get VSCode report like “It look like git is not installed on your system”.

I installed git(2.23.0) from


Visual Studio Code (1.39.2) from

When I start VSCode with administrator rights, git is correctly detected.

I’ve tried to add git path on Windows environment PATH + restart PC -> did not work.

I’ve tried to add git path on VSCode setting.json + restart like :

    // Is git enabled
    "git.enabled": true,

    // Path to the git executable
    "git.path": "C:\\path\\to\\git.exe"

    // other settings

–> that also did not work.

If I use “Show Git Output”, the report shows me the correct path, but doesn’t detect the git installation.


Finally, I found a solution to solve my problem. When I install VS code by default,is going on “C:\users[user]\AppData\vscode”. and git default installation folder is “C:\Program Files\Git\”

When I try to call git function from vscode it come from my user directory and access to git is forbidden.

SOLUTION : I install git on my user directory and now it’s work.

Answered By – Habanas

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published