首先配置为shadowsocks代理,保证可以使用shadowsocks.

1
2
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

取消方法

1
2
git config --global --unset http.proxy
git config --global --unset https.proxy

如果使用windows和MAC请找相应的版本即可

最后更新: 2023年08月27日 03:06

原始链接: https://blog.icanwen.com/2022/12/19/shadowsocks/