简体   繁体   中英

Visual Studio Code “Git not found”

I have Windows10 with the Ubuntu bash and Visual Studio Code.

Every time I start Visual Studio Code it prompts a warning saying:

Git not found. Install it or configure it using the 'git.path' setting

I got git actually installed through the bash terminal:

# which git
/usr/bin/git

How can I instruct Visual Studio Code to use that git installed in the bash terminal?

I have tried through the git.path setting but I am not sure how to set the path to something that is relative to the bash terminal.

If you're running Visual Studio Code on Windows, you also need to install Git for Windows. VsCode currently can't access git on the linux subsystems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM