git 速度慢问题解决

使用VPN上网后,如果git下载速度还是很慢说明没有正确设置代理

查看你的代理模式是否是pac代理,如果是改成全局或者Http代理,pac代理会选择性的代理网站,可能会略过某些网站。

如果还是比较慢则手动设置代理,如下:

先查看代理软件代理地址然后做如下设置:

开启代理:

git config --global https.proxy http://127.0.0.1:10809

git config --global https.proxy http://127.0.0.1:10809

git config --global http.proxy 'socks5://127.0.0.1:10808'

git config --global https.proxy 'socks5://127.0.0.1:10808'

查看是否配置成功

git config --list

配置文件位置一般是当前用户目录下的.gitconfig例如:C:Users14469.gitconfig

取消

git config --global --unset http.proxy

git config --global --unset https.proxy

原文地址:https://www.cnblogs.com/yanshaoshuai/p/12966537.html