設(shè)置代理:
全局代理
git config --global http.proxy 127.0.0.1:1087
局部代理,在github clone 倉(cāng)庫(kù)內(nèi)執(zhí)行
git config --local http.proxy 127.0.0.1:1087
(127.0.0.1:1087 這個(gè)地址是我翻出去用的代理地址,根據(jù)自己的實(shí)際修改)
查詢是否使用代理:
查詢?nèi)执?/h6>
git config --global http.proxy
查詢局部代理
git config --local http.proxy
取消代理:
git config --global --unset http.proxy
git config --local --unset http.proxy