gpt4 book ai didi

c - 每次提交文件时,都会出现以下错误

转载 作者:行者123 更新时间:2023-11-30 16:48:42 26 4
gpt4 key购买 nike

Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.57 KiB | 0 bytes/s, done.
Total 8 (delta 4), reused 0 (delta 0)
remote: error: object file ./objects/fc/71bf7d8648c42b3f7a5502057108721ce8118 is empty
remote: fatal: loose object fc71bf7d8648c42b3f7a55c02057108721ce8118 (stored in ./objects/fc/71bf7d8648c42b3f7a55c02057108721ce8118) is corrupt
error: unpack failed: unpack-objects abnormal exit
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to (insert my repository)

而且我还得到了一堆未跟踪的文件。有什么理由吗?

感谢您的帮助!

最佳答案

正如 Iharob Al Asimi 所说,它可能已损坏(毕竟这就是错误消息所说的内容)

您可能还想检查文件的权限是否相同。我想我记得在尝试以不同的用户名推送文件时看到此错误。

例如,假设您使用用户名“JKhel”执行了 git clone blah@blahblah

但是在执行 su admin 之后,您进行了更新并以用户名“admin”进行了推送。 (或反之亦然)

也许您的实际文件的权限设置为 777,但对象的权限设置为 117。

在路径 ./objects/fc/中使用 ls -la 检查您的权限

否则请在此处查看其他一些帖子,其中包含相同的错误:how to fix GIT error: object file is empty?

关于c - 每次提交文件时,都会出现以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42870243/

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