1

Why does my Visual Studio Code keep popping up this message?

I don't even use Git, and it started happening. Is it because I opened the Git panel?

Restarting does nothing, changing the settings/config doesn't help either. Super annoying and frustrated, please help.

enter image description here

2
  • Which OS? You should provide more info. Commented Dec 20, 2015 at 2:33
  • Oh sorry didn't think of that. I'm on Mac OS 10.11 Commented Dec 20, 2015 at 2:51

4 Answers 4

2

Install git on your machine so it will be found in your path.

Once it's there, VC should not alert you anymore.

https://git-scm.com/downloads

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

1 Comment

I think it is more common to call VS Code or Code. VC has been used for Visual C++ for years.
1

I think VS Code assumes you already have Git installed from another mean,

  • Xcode
  • GitHub Desktop
  • Homebrew
  • Git

Thus, it directly attempts to locate Git and fails.

I will recommend you report this to VS Code project at GitHub, but installing Git is a quick workaround.

2 Comments

Ah makes sense! Yeah I will report this and will install Git. Thanks!
Just as a follow up see my comment below: stackoverflow.com/questions/34376087/…
0

On OSX, assuming you have XCode installed, you will need to run git once from shell in order to agree to licensing terms. Otherwise Code will fail to run it.

1 Comment

I actually reported this on their github issues and its something they needed to fix. github.com/Microsoft/vscode/issues/1508
0

Open windows command prompt or the command prompt of git in Visual Studio code by using short key ctrl+shift+c and then enter the this command:
git config --global user.email "[email protected]"

After this now stage your changes and then try to commit!

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.