我能拉但不能推
$ 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 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
发布于 2016-10-17 19:02:57
试着使用git推送的--不太薄的选项。
$ git push --no-thin
来自https://git-scm.com/docs/git-push
-不瘦 这些选项被传递给git发送包1。当发送方和接收方共享许多相同的对象时,瘦传输显着地减少了发送的数据量。默认的是.瘦的。
我们的团队一直在努力解决同样的问题,并尝试了OP链接中提到的所有修复/解决方案,并取得了各种成功。对某些人有效的方法对另一些人无效,几个月后对同一个人也不起作用。到目前为止,
发布于 2019-06-04 02:27:31
可能没有设置整个文件夹权限,chown -R git:git /your路径
发布于 2018-04-22 17:50:45
问题来自NFS版本--您的Vagrant挂载。您必须使用在Windows中不可用的版本4。在Windows上使用临时默认的同步文件夹,而不是NFS。
https://stackoverflow.com/questions/39362918
复制相似问题