git push fatal: HttpRequestException encountered. An error occurred while sending the request

大飛_dafei發表於2018-03-06

1、windows7 向github提交程式碼報錯:

$ git push
fatal: HttpRequestException encountered.
   An error occurred while sending the request.
fatal: HttpRequestException encountered.
   An error occurred while sending the request.
Username for 'https://github.com':

2、hexo 向 github中提交報錯

fatal: could not read Username for 'https://github.com':No error


首先以為是公鑰出錯了,本地重新生成公鑰,新增到github上,還是不行;用 SourceTree 測試git專案OK;猜測是git安裝包出現問題,解除安裝git安裝包,安裝最新安裝包,問題解決;


相關文章