设置代理 http/https协议(clone https://前缀的repo会走ss)

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080' Code language: PHP (php)

删除

git config --global --unset http.proxy
git config --global --unset https.proxyCode language: PHP (php)


了解 Starx's Home 的更多信息

订阅后即可通过电子邮件收到最新文章。

分类: GIT