VS 2017 Git failed with a fatal error的解决办法

问题现象

这几天用刚装的VS2017写了个程序,在提交推送到Github过程中提示了“Git failed with a fatal error”错误,输出窗口的提示如下图:

VS 2017 Git failed with a fatal error的解决办法
Vs2017提交Github报错

解决方案

经过一番折腾后再网上找到如下解决方案:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin 目录下的 libeay32.dllssleay32.dll 复制到 C:\Program Files\Git\mingw64\libexec 目录下。

如果你的VS2017或Git安装目录不是默认的请自行替换路径。

接下来回到VS2017中重新推送,顺利提交成功。

VS 2017 Git failed with a fatal error的解决办法
VS2017提交Github成功

参考文献

VS 2017 - Git failed with a fatal error