Getting error 'Git failed with a fatal error' in Visual Studio 2017 when using Git for windows

I was trying to checkout from branch or you can say I was trying to change the branch of my Visual Studio 2017 project using Visual Studio's inbuilt Git, but I am facing the below error

Git process failed unexpectedly. checkout --progress

How can I resolve this? I am unable to change the branch

Asked by:- bhanu
: 1817 At:- 3/5/2018 11:51:27 AM
Visual studio git for windows git

1 Answers
profileImage Answered by:- pika

I had similar issue while working in Visual Studio 2017 community edition, and was able to resolve after following  these steps

  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 (no need to remove tortoise git)

  3. Open up the VS 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 VS 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.


At:- 3/6/2018 11:39:57 AM Updated at:- 3/6/2018 11:41:07 AM
Thanks worked for me 0
By : bhanu - at :- 3/7/2018 7:19:30 AM

Login/Register to answer
Register directly by posting answer/details

Full Name *

Email *

By posting your answer you agree on privacy policy & terms of use