要在 github 上下载一个朋友做的项目,试了几次都报如下错误,但是在海外的 VPS 上秒 clone 完成,所以猜测是原始 resposity 过大,网络又不好导致的。
1 2 3 4 5 |
error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed |
解决方案:
节流:
只 clone 每个文件最新的一个提交,然后再 fetch 完整的提交记录。
1 2 3 4 |
$ git clone http://github.com/large-repository --depth 1 $ cd large-repository $ git fetch --unshallow |
开源:
如果有梯子,为 git 配置加速的梯子也能解决问题。
1 2 |
git config --global http.proxy http://127.0.0.1:4411 |
或者
1 2 3 4 |
export http_proxy=http://127.0.0.1:4411 # 配置http访问的 export https_proxy=http://127.0.0.1:4411 # 配置https export all_proxy=http://127.0.0.1:4411 # 配置http和https访问 |
其它方式
1 2 |
$ git clone git@github.com:large-repository |
完成无用的方案:
该设置只影响到 push,对 clone 毫无帮助.
1 2 |
git config –-global http.postBuffer 524288000 |
最新评论
昨天发现的,然后在application.yml中配置“hibernate.dialect.storage_engine=innodb”。但是自动生成的表还是不会设置为innoDB,看了底层源码。这个配置也是没有加载到的 原来是要在hibernate.properties中加这个配置。感谢
将virtualbox虚拟网卡驱动卸载了,然后就会好了,但是这个时候virtualbox虚拟网络就无法使用了,重新安装一下virtualbox就好了
我也发现了这个注释:注释“Use "hibernate.dialect.storage_engine=innodb" environment variable or JVM system property instead.” ----- 坑啊。。。。。。。
卸载蓝牙驱动·在设备里面找,一般在网卡那里 卸载重启就行了
高