gpt4 book ai didi

Git 推送错误 : unpack failed: index-pack abnormal exit

转载 作者:太空狗 更新时间:2023-10-29 12:53:10 27 4
gpt4 key购买 nike

我可以 pull 但是不能 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://*********

我试过了:

  • git 重新打包
  • git git config --global core.compression 0

我已经引用了以下链接,但对我来说没有任何效果

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

其他 git 用户可以推送到同一个 repo,通常这个问题发生在没有添加大量新文件的提交中

上述解决方案均无济于事,我被困住了。

谢谢

编辑

也试过

[core] 
packedGitLimit = 512m
packedGitWindowSize = 512m
[pack]
deltaCacheSize = 2047m
packSizeLimit = 2047m
windowMemory = 2047m

最佳答案

尝试使用 git push 的 --no-thin 选项。

$ git push --no-thin

来自 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.

我们的团队一直在努力解决同样的问题,并尝试了 OP 链接中提到的所有修复/解决方法,并取得了不同程度的成功。对某些人有效的方法对其他人无效,几个月后对同一个人也无效。到目前为止,--no-thin 选项一直运行良好。

关于Git 推送错误 : unpack failed: index-pack abnormal exit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39362918/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com