Git推送错误:解压缩失败:索引包异常退出 [英] Git push error: unpack failed: index-pack abnormal exit
问题描述
我能够拉动但无法推动git push
$ $ $ git push -u origin master
计数对象:2031年,完成。
使用多达4个线程的增量压缩。
压缩对象:100%(1367/1367),完成。
remote:fatal:早期EOF
写作对象:100%(2031/2031),34.33 MiB | 100.00 KiB / s,完成。
总计2031(delta 659),重用1056(delta 324)
错误:解包失败:索引包异常退出
转至https:// *********。 git
! [remote rejected] master - > master(unpacker error)
错误:未能将一些文件推送到'https:// *********
我试过:
我已经提到以下链接,但没有任何内容适用于我
Git推送失败,使用致命的:早期的EOF当PUSHing但只在一个文件中
其他git用户可以推送到相同的repo,通常在提交大no时发生此问题的新文件被添加
以上解决方案都没有帮助,我被卡住了。
感谢
编辑
b
[core]
packedGitLimit = 512m
packedGitWindowSize = 512m
[pack]
deltaCacheSize = 2047m
packSizeLimit = 2047m
windowMemory = 2047m
尝试使用git push的--no-thin选项。
$ git push --no-thin
- [no- ] thin
这些选项被传递给git-send-pack [1]。当发送方和接收方共享许多相同的对象时,精简传输可以显着减少发送的数据量。我们的团队一直在努力解决这个问题,并尝试了所有在上面提到的修补程序/解决方法。 OP链接,并获得各种成功。对某些人有用的东西不适用于其他人,几个月后也不会为同一人工作。到目前为止,--no-thin选项一直运行良好。
I'm able to pull but Unable to git push
$ git push -u origin master Counting objects: 2031, done. Delta compression using up to 4 threads. Compressing objects: 100% (1367/1367), done. remote: fatal: early EOF Writing objects: 100% (2031/2031), 34.33 MiB | 100.00 KiB/s, done. Total 2031 (delta 659), reused 1056 (delta 324) error: unpack failed: index-pack abnormal exit To https://*********.git ! [remote rejected] master -> master (unpacker error) error: failed to push some refs to 'https://*********
I have tried :
- git repack
- git git config --global core.compression 0
I have already referred to the following links but nothing is working for me
Git push failed - unpack-objects abnormal exit
fatal: early EOF fatal: index-pack failed
Git push fails with "fatal: early EOF" when PUSHing but only on one file
Other git users are able to push to the same repo, usually this problem occurs when in commit large no of new files are added
None of the above solutions have helped and I'm stuck.
Thanks
EDIT
Also tried
[core] packedGitLimit = 512m packedGitWindowSize = 512m [pack] deltaCacheSize = 2047m packSizeLimit = 2047m windowMemory = 2047m
解决方案Try using the --no-thin option of git push.
$ git push --no-thin
From https://git-scm.com/docs/git-push:
--[no-]thin
These options are passed to git-send-pack[1]. A thin transfer significantly reduces the amount of sent data when the sender and receiver share many of the same objects in common. The default is --thin.
Our team has struggled with this same issue and has tried all of the fixes/workarounds mentioned in the OP links, with various success. What works for some didn't work for others, nor would it work for the same person a few months later. So far, the --no-thin option has been working well.
这篇关于Git推送错误:解压缩失败:索引包异常退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!