美文网首页
git 设置代理

git 设置代理

作者: zch4wb | 来源:发表于2018-10-24 18:16 被阅读10次

设置代理

# git clone http://...
git config --global http.proxy 'socks5://127.0.0.1:1080'
# git clone https://...
git config --global https.proxy 'socks5://127.0.0.1:1080'
# git clone git://...
git config --global core.gitproxy 'socks5://127.0.0.1:1080'

取消代理

git config --global --unset http.proxy

相关文章

网友评论

      本文标题:git 设置代理

      本文链接:https://www.haomeiwen.com/subject/eebxtqtx.html