Git:重命名和移动目录后 "fatal: The remote end hung up unexpectedly" 和 "error in tree"

Git: "fatal: The remote end hung up unexpectedly" and "error in tree" after renaming & moving directories

Github started 拒绝了我推送最新提交的尝试。我不确定为什么;你能帮忙吗?我只是Git的用户,对它了解不多。这是对 git push -u origin master 的回复:

Counting objects: 49, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (33/33), done.
Writing objects: 100% (49/49), 80.45 KiB | 40.23 MiB/s, done.
Total 49 (delta 24), reused 38 (delta 13)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

我必须设置原点,因为我之前将其删除(试图解决此问题)并且此后一直没有成功推送。三十分钟后,我得到了截然不同的回应:

Counting objects: 49, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (33/33), done.
Writing objects: 100% (49/49), 80.45 KiB | 40.23 MiB/s, done.
Total 49 (delta 24), reused 38 (delta 13)
remote: error: object 91c3c1b5b1c6f17f90fb71f0c17a1990456fcbb6: treeNotSorted: not properly sorted
remote: fatal: fsck error in packed object
error: remote unpack failed: index-pack abnormal exit
To github.com:globewalldesk/revuu.git
 ! [remote rejected] master -> master (failed)
error: failed to push some refs to 'git@github.com:globewalldesk/revuu.git'

以下是一些可能有助于解决问题的注意事项:

我还需要什么 post 来帮助解决这个问题?

之后(最近才解决),作为测试尝试:

  • 在新位置(在您的本地计算机上或在您的云上)再次克隆存储库
  • 在那里报告一个新的提交
  • git push