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