Visual Studio 2017 – Git failed with a fatal error

Solution :

  1. Navigate to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\ and delete the Git folder.
  2. Make sure that there is no version of Git installed on your system, remove it by going to Control Panel → Program and Features (TortoiseGit does not need to be removed from my experience, just native git installations).
  3. Open up the Visual Studio 2017 installer and untick “Git For Windows” in installation options.
  4. Head over to the Git website and install the latest version of Git for Windows.
  5. Go back into the Visual Studio installer and tick “Git for Windows” again. It will not download a new version even though it may look like it is. After that is done, your Git should be fine with VSTS and TF Explorer.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s