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

简介: 前几天,满怀欣喜的从VS2015更新到了VS2017,经过这几天的试用,整体来说感觉还是挺不错的。昨天推送项目到远程服务器的时候,发现出现了推送失败的错误,错误如图:按照提示,我看到输出窗口的输入内容如下:当时以为更换了VS导致了ssh key丢失,重新输入密码验证一下就可以了,于是开始想办法找输入密码的地方。

前几天,满怀欣喜的从VS2015更新到了VS2017,经过这几天的试用,整体来说感觉还是挺不错的。昨天推送项目到远程服务器的时候,发现出现了推送失败的错误,错误如图:

按照提示,我看到输出窗口的输入内容如下:

当时以为更换了VS导致了ssh key丢失,重新输入密码验证一下就可以了,于是开始想办法找输入密码的地方。

经过一番折腾寻找,发现点击操作的时候,出现如下菜单:

这里我们选择“打开命令提示符”菜单,打开了命令提示符,输入提交到远程命令:

git push origin master

结果直接提交成功了,如图:

发现不是ssh key的问题,于是开始上网上找方法,经过一番百度,终于在Stack overflow上找到了答案,截图如下:

按照操作,我复制路径到资源管理器,结果出现如下错误:

这里解释一下,这个是因为我安装的Enterprise版本的,而上面的是Community版本的,所以要根据自己的版本替换掉路径中的Community。

 

我把C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin下的libeay32.dll和ssleay32.dll复制到了git-core的文件夹下,然后到VS 2017里面点击同步试了一下,发现提示操作成功了。如图:

 

 相关资源:

VS 2017 - Git failed with a fatal error

 

 

 作者:雲霏霏

.NET QQ交流群:243633526    安卓QQ交流群:227526925   更多类型交流群敬请期待!

 博客地址:http://www.cnblogs.com/yunfeifei/

 Github地址:https://github.com/yunfeifei

 声明:本博客原创文字只代表本人工作中在某一时间内总结的观点或结论,与本人所在单位没有直接利益关系。非商业,未授权,贴子请以现状保留,转载时必须保留此段声明,且在文章页面明显位置给出原文连接。

如果大家感觉我的博文对大家有帮助,请推荐支持一把,给我写作的动力。

 

目录
相关文章
|
4月前
|
网络协议 Linux 网络安全
weavescope curl -L git.io/scope -o /usr/local/xx failed to connect to 2001: Network is unreachable
weavescope curl -L git.io/scope -o /usr/local/xx failed to connect to 2001: Network is unreachable
|
1月前
|
开发工具 git
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
|
2月前
|
网络安全 开发工具 git
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
20 0
|
3月前
|
Go 开发工具 git
【git】解决:Failed to connect to 127.0.0.1 port 7890: Connection refused
【git】解决:Failed to connect to 127.0.0.1 port 7890: Connection refused
490 0
|
2月前
|
Linux 开发工具 git
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
|
2月前
|
开发工具 git
Git:error: remote origin already exists
Git:error: remote origin already exists
21 2
|
3月前
|
开发工具 git
Git上传出现:The requested URL returned error: 403解决办法
Git上传出现:The requested URL returned error: 403解决办法
66 0
|
4月前
|
开发工具 git
[Git Error] failed to push some refs to “××××.git”
[Git Error] failed to push some refs to “××××.git”
48 0
|
4月前
|
Shell 开发工具 数据安全/隐私保护
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
67 0
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
|
6月前
|
开发工具 git
【问题解决】Git命令行常见error及其解决方法
以下是我一段时间没有使用xshell,然后用git命令行遇到的一些系列错误和他们的解决方法
129 0