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
0
: 4048 At:- 3/5/2018 11:51:27 AM
Visual studio git for windows git







2 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.

Source

OR

This Error can also occur if there is any error in code, you can simply revert code and try again, this may also work in some cases.

2
At:- 3/6/2018 11:39:57 AM Updated at:- 11/24/2022 9:55:27 AM
Thanks worked for me 0
By : bhanu - at :- 3/7/2018 7:19:30 AM


profileImage Answered by:- vikas_jk

You can also try this solution, in Windows -> Control Panel -> All Control Panel Items ->Credential Manager -> Windows Credentials -> Remove Git:http://........

and Retry, this may work.

0
At:- 11/24/2022 3:58:21 PM






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

Full Name *

Email *




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