Visual Studio Code cannot detect installed git

后端 未结 21 2275
走了就别回头了
走了就别回头了 2020-11-30 21:54

Visual Studio Code reports \"It look like git is not installed on your system.\" when I try to switch to the git view. I know I have git installed and used by other git clie

21条回答
  •  旧时难觅i
    2020-11-30 22:57

    Now you can configure Visual Studio Code (version 0.10.2, check for older versions) to use existing git installation.

    Just add the path to the git executable in your Visual Studio Code settings (File -> Preferences -> Settings) like this:

    {
        // Is git enabled
        "git.enabled": true,
    
        // Path to the git executable
        "git.path": "C:\\path\\to\\git.exe"
    
        // other settings
    }
    

提交回复
热议问题