我遇到了一些关于 20 次提交的行尾问题,并且发生了一些奇怪的事情。现在 git fsck 显示:
Checking object directories 100% (256/256), done.
error in tree ee2060e71cb36d33be5ddc1fe9ca8d7dd0ab35cd: contains duplicate file entries
Checking objects: 100% (8633/8633), done.
和 git show ee2060 显示:
File1.cs
File2.cs
File2.cs
File2.cs
File3.cs
这阻止了我推送到我的遥控器。git push 显示:
error: unpack failed: index-pack abnormal exit
To https://github.com/username/Project.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'https://github.com/username/Project.git'
我试过重新包装和垃圾收集。我该如何解决这个问题?