3

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.

1
  • You can make that an answer, since the ubuntu installed git will not be found indeed. Commented Feb 19, 2018 at 19:51

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Can´t I alias the git from windows to the one from bash? And then call the git from windows that eventually call the git from bash...
Doesn't work that way. Looking for a way to get a hook working or something?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.