對以下文章有疑問可以私聊我,比如自己的端口號怎么設(shè)置之類的。
把端口號改成自己的端口號 spm 像是坐上火箭了。我的端口號是 6152
git config --global http.proxy http://127.0.0.1:6152
不得不說這方面老外還是很有點門道。
git設(shè)置、查看、取消代理
設(shè)置代理:
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 --get http.proxy
git config --global --get https.proxy
取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy