Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 883
Watchmaker Avatar asked Aug 25 '26 23:08

Watchmaker


1 Answers

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.

like image 144
jessehouwing Avatar answered Aug 28 '26 12:08

jessehouwing



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!