赞
踩
Push fail
Enumerating objects: 43, done.
Delta compression using up to 8 threads
Total 32 (delta 11), reused 0 (delta 0), pack-reused 0
the remote end hung up unexpectedly
the remote end hung up unexpectedly
Push fail Enumerating objects: 43, done. Delta compression using up to 8 threads Total 32 (delta 11), reused 0 (delta 0), pack-reused 0 the remote end hung up unexpectedly the remote end hung up unexpectedly
thread???明明前一会会还可以正常push pull的
reset 到之前 commit了一次小改动试了下 push 成功了 那就说明git没事 就是这次文件的问题
那只能是文件大小的问题吧 一百度也都是说缓存太小,又查了下文档

看了下文件,两个js文件大于1M,分次把其他的文件commit push也都可以就这两个大文件push,那就按照网上的方法修改http.postBuffer,然后push ,,还不行
看了几十篇全是说postBuffer的问题,说是容量不够需要扩容,,但是我的已经改过了


用 git config -l 看了下 ,发现我的 core.compression 怎么是0 别人的截图是1
于是查了下文档

正常都是1-9,那我的 0 不就是不正常么,而且是关于压缩的,我这就是因为文件过大造成的,应该可以解决吧,于是我改成了1,然后 push


哇塞,没想到还有后续,上面改 core.compression 为 1 后解决了那天的问题
但是!!现在过了几天后又出现了同样的问题

最开始我还纳闷难道 git 配置 core.compression 又变回去了?但是 并没有

于是
我直接 git config core.compression 9

再一次成功了。。。

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。