git 提交很慢或者卡住writing objects的解决方法
git config --global http.postBuffer 5242880000
git更新或提交中途有时出现The remote end hung up unexpectedly的异常
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
fatal: Out of memory, malloc failed问题的解决
git config --global pack.windowMemory 1024m
上传github访问速度慢的一种优化方法
通过绕过DNS解析,直接在本地绑定host
在浏览器中打开DNS查询网站
http://tool.chinaz.com/dns
,我们输入
github.com
点击检测,在下方的结果列表中,选择TTL值小的IP地址 192.30.255.113
接着我们打开本地电脑的
C:\Windows\System32\drivers\etc
目录,找到hosts文件
添加
192.30.255.113 github.com
157.240.12.50 github.global.ssl.fastly.net(同添加github.com一样)
打开cmd 刷新dns
ipconfig /flushdns
版权声明:本文为chinabhlt原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。