解決eclipse中egit中的cannot open git-upload-pack問題

阿豪聊乾貨發表於2016-05-16

一、背景

  今天在使用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/

親測可用~

  

相關文章