Git配置https_proxy訪問github失敗


現象:

拉取github倉庫報錯如下:

Git Pull Failed: unable to access 'https://github.com/*.git/': Proxy CONNECT aborted

解決措施:

git config --global http.proxy http://127.0.0.1:1234
git config --global https.proxy http://127.0.0.1:1234

設置時不要設置密碼,https下密碼認證不通過。

在git shell下使用 

GIT_CURL_VERBOSE=1 GIT_TRACE=1 git clone https://github.com/**.git

 

  可以看到具體日志

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM