由于总所周知的原因,编译有时候很慢,那么git如何走代理:
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
取消走代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
查看代理:
git config --global --get http.proxy git config --global --get https.proxy
没有评论:
发表评论