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

原文地址:https://www.cnblogs.com/sunylat/p/14644951.html