git config --global --add remote.origin.proxy "127.0.0.1:8001"
#只对github.com
git config --global http.https://github.com.proxy http://127.0.0.1:8001
git config --global http.https://github.com.proxy socks5://127.0.0.1:1081
#取消代理
git config --global --unset http.https://github.com.proxy
git config --global --unset remote.origin.proxy
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
git常用命令
最新推荐文章于 2022-08-10 22:56:35 发布