设置代理 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)

分类: GIT

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据