github desktop clone速度过慢解决方案:git
2020-02-13 本文已影响0人
tianchen627
clone过慢网上给出的大部分解决方案是修改hosts文件然后刷新DNS,不过这种方法对有些人有用有些人没用,对我就没有起效果。
另一种简单粗暴的方法就是挂代理了,在cmd中通过git config --global来设置代理。不过在如何在github desktop上设置代理呢?
以下是解决方法:
在.gitconfig文件下加上
[http]
proxy = http://<proxy-ip>:<proxy-port>
比如我的配置是

那就是加上
[http]
proxy = http://127.0.0.1:1080