Going through the process of getting Visual Studio 2017 installed on all my machines has been pretty smooth. The new installer works great and makes it much clearer what needs to be installed.
The issue
The one issue I have had, which was only an issue on one install, is an error when trying to clone a repo from GitHub. I say GitHub but really it would be a problem with any Git repo. The following is the error I was getting.
Error encountered while cloning the remote repository: Git failed with a fatal error.
CloneCommand.ExecuteClone
The solution
After searching I found a lot of things to try. I uninstalled and reinstalled Git for Windows multiple times using both the Visual Studio Installer and the stand alone installer. I finally stumbled onto this forum thread which had a solution that worked for me. The following is a quote of the reason for the issue and a fix posted by J Wyman who is a software engineer for Microsoft’s Developer Division.
After intensive investigation we were able to determine that Git was accidentally loading an incorrect version of libeay32.dll and ssleay32.dll due to library loading search order and precedence rules. Multiple users have confirmed that copying the binaries from the “<VS_INSTALL>\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin\” folder to the “<VS_INSTALL>\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core\” folder completely resolved the issue for him.
Any other users seeing similar problem should attempt the same solution.
I hope this gets other people up and running as it did me. My only worry about this fix is what happens with Git gets updated.
Thanks for your help. The solution really works.
Thanks for the comment Ana glad this helped!
Thanks. This totally resolved my issue.
Glad to here it Dan!
I have VS 2017 15.4 and it does let me clone gives win 32 exception , i do not see TeamFoundation\Team Explorer\Git\mingw32\ folder at VS installation
Sounds like you are dealing with a different issue if the clone works. You might try reinstalling Git to see if that helps. The installer can be found here.
Still getting same error after following the above steps. I am using VS2017.
Please let me know any step anyone know.
Regards,
Ayodhya
Thank you so very, very much. Was just having heart failure at the loss of University assignment!
Happy to hear it helped!
Awesome! Worked for me.
Awesome , you saved my time. this resolved my issue
Sadly, did not work for me.
It works perfectly! thank you! ^^
I found the directories mentioned, but the dlls doesn´t exist, I have VS 2019, any suggestion?
Regards