設置代理:
全局代理
git config --global http.proxy 127.0.0.1:1087
局部代理,在github clone 倉庫內執行
git config --local http.proxy 127.0.0.1:1087
(127.0.0.1:1087 這個地址是我翻出去用的代理地址,根據自己的實際修改)
查詢是否使用代理:
查詢全局代理
git config --global http.proxy
查詢局部代理
git config --local http.proxy
取消代理:
git config --global --unset http.proxy
git config --local --unset http.proxy
作者:LOok_陽陽
鏈接:https://www.jianshu.com/p/8c5bb8eee8b2
來源:簡書
著作權歸作者所有。商業轉載請聯系作者獲得授權,非商業轉載請注明出處。