-- 编辑 -- 我最终将所有文件复制到另一个文件夹并从那里推送。没有提交历史。:(
感谢您的回复。
- /编辑 -
我是 git 新手。对于我的 html5 应用程序,我使用了 aptana 的 html5 样板,它为您安装了一个 git 存储库。好的。现在,在我的应用程序上工作了几个星期后,我想把它推送到 github。我在那里创建了一个新的存储库。
现在,当我尝试从 shell 或 tortoisegit 推送到 github 时,我在上传所有文件后遇到错误:
$ git push -u origin master
...
remote: error: unable to find b4587434...<snip>...c701 (probably a checksum)
remote: fatal: objet of unexpected type
error: unpack failed: index-pack abnormal exit
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'https://github.com/<user>/<project>.git'
我一直在寻找解决方案,但还没有找到任何东西。我尝试的一些操作没有帮助:
- 我已将 origin 重命名为其他内容。
- 我在 github 上创建了另一个存储库。
- “git status”确认我没有什么可提交的。
请帮忙,git花费这么多时间来找出应该简单的东西真是令人沮丧。:(