Git设置代理


使用yarn安装东西时候出现的错误:

fatal: unable to access 'https://github.com/nhn/raphael.git/': Unknown SSL protocol error in connection to github.com:443

最终给Git安装代理搞定:

# 设置当前代理
git config http.proxy http://127.0.0.1:2334

# 取消当前代理
git config --unset http.proxy

#取消全局代理
git config --global --unset http.proxy

#设置socks5代理
git config http.proxy socks5://127.0.0.1:10809

参考:

https://blog.csdn.net/default7/article/details/100068256


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM