解决eclipse中egit中的cannot open git-upload-pack问题

时间:2016-05-16 19:55:10   收藏:0   阅读:2397

一、背景

  今天在使用eclipse的egit插件进行检出远程代码到本地时,出现了cannot open git-upload-pack错误,后经过努力解决该问题,记录下方便回顾和交流!

二、出现原因

  1.网络问题,网络出现异常或者不能链接到github

  2.eclipse中的egit插件的配置问题

三、解决步骤

  1.打开eclipse中的windows-->Preferences

  技术分享

  2.选择Team-->Git-->Configuration-->User Settings.然后点Add Entry新建一个键值对,输入http.sslVerify=false。如图所示:

技术分享

然后确定  ,就发现egit可以正常的pull和push了。所有的前提是你能用浏览器访问https://github.com/或者https://bitbucket.org/

亲测可用~

  

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!