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