Visual Studio Code cannot detect installed git

后端 未结 21 2221
走了就别回头了
走了就别回头了 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条回答
  •  無奈伤痛
    2020-11-30 22:54

    First check if Git* installed or not in your system

    by typing the command in cmd /command prompt (In windows)

    where git
    

    if you get an output like this

    λ where git
    C:\cmder\vendor\git-for-windows\cmd\git.exe
    

    Then Go to Settings > Preferences > Settings and put the bellow code** right part.

     {
        // If git enabled ?
        "git.enabled": true,
    
        // Path to the git executable
        "git.path": "C:\\cmder\\vendor\\git-for-windows\\cmd\\git.exe"
    }
    
    • If you don't have Git installed , Install git from here https://git-scm.com/

    ** Just add double slash (\\) just like the above code.

提交回复
热议问题