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'
以下是一些可能有助于解决问题的注意事项:
- 我一直在做大量的命令行重命名和移动目录。这涉及到向 .gitignore 和
git rm --cache <foo>
添加很多内容。我只是随意地做了那个...
故障排除时,我尝试了 运行 git fsck --full
并得到了这个错误:
检查对象目录:100% (256/256),完成。
树 91c3c1b5b1c6f17f90fb71f0c17a1990456fcbb6 中的错误:treeNotSorted:未正确排序检查对象:100% (621/621),完成。```
- 同样在排错的时候,我试过运行
git gc --prune="0 days"
--没有效果
- 我的 "local" 存储库实际上在云服务中。我一直在机器之间来回切换以对其进行处理(这应该无关紧要,不是吗? Git 似乎与机器无关)。当我到处旅行时,我一直在切换许多 Wi-Fi 网络。直到我使用笔记本电脑并使用不同的 Wi-Fi 网络后才发生...我尝试切换到 iPhone 的个人热点和 Verizon;没有骰子。
- 我也试过将我的来源更改为 https。还删除了 origin 并将其重置为 ssh。没有效果。
- 一个答案建议我使用一个叫做 "git-repair" 的东西,但这似乎是一个 Haskell 脚本,如果不需要的话,我不想费心去安装它。
- 已尝试 运行
git config --global http.postBuffer 524288000
。没有效果。
- Repo here 如果有帮助。
- 我的 Ruby 脚本创建和删除了很多 .tar 文件。
git remote -v
的结果:
来源git@github.com:globewalldesk/revuu.git(获取)
来源 git@github.com:globewalldesk/revuu.git(推)
origin-https https://github.com/globewalldesk/revuu.git(获取)
origin-https https://github.com/globewalldesk/revuu.git(推送)
我还需要什么 post 来帮助解决这个问题?
在 之后(最近才解决),作为测试尝试:
- 在新位置(在您的本地计算机上或在您的云上)再次克隆存储库
- 在那里报告一个新的提交
git push
它
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'
以下是一些可能有助于解决问题的注意事项:
- 我一直在做大量的命令行重命名和移动目录。这涉及到向 .gitignore 和
git rm --cache <foo>
添加很多内容。我只是随意地做了那个... 故障排除时,我尝试了 运行
git fsck --full
并得到了这个错误:检查对象目录:100% (256/256),完成。 树 91c3c1b5b1c6f17f90fb71f0c17a1990456fcbb6 中的错误:treeNotSorted:未正确排序检查对象:100% (621/621),完成。```
- 同样在排错的时候,我试过运行
git gc --prune="0 days"
--没有效果 - 我的 "local" 存储库实际上在云服务中。我一直在机器之间来回切换以对其进行处理(这应该无关紧要,不是吗? Git 似乎与机器无关)。当我到处旅行时,我一直在切换许多 Wi-Fi 网络。直到我使用笔记本电脑并使用不同的 Wi-Fi 网络后才发生...我尝试切换到 iPhone 的个人热点和 Verizon;没有骰子。
- 我也试过将我的来源更改为 https。还删除了 origin 并将其重置为 ssh。没有效果。
- 一个答案建议我使用一个叫做 "git-repair" 的东西,但这似乎是一个 Haskell 脚本,如果不需要的话,我不想费心去安装它。
- 已尝试 运行
git config --global http.postBuffer 524288000
。没有效果。 - Repo here 如果有帮助。
- 我的 Ruby 脚本创建和删除了很多 .tar 文件。
git remote -v
的结果:来源git@github.com:globewalldesk/revuu.git(获取) 来源 git@github.com:globewalldesk/revuu.git(推) origin-https https://github.com/globewalldesk/revuu.git(获取) origin-https https://github.com/globewalldesk/revuu.git(推送)
我还需要什么 post 来帮助解决这个问题?
在
- 在新位置(在您的本地计算机上或在您的云上)再次克隆存储库
- 在那里报告一个新的提交
git push
它