git push - 如何修复错误远程:致命:坏对象HEAD?

k.v*_*ent 1 git gitlab

我确实克隆了一个主分支,创建了一个新的分支并进行了更改,提交并尝试使用以下命令进行推送:

git push origin myNewBranch,但我一直收到以下错误:

remote: fatal: bad object HEAD
To https://gitlab.com/myProjectRepo/my-app.git
 ! [remote rejected] myNewBranch -> myNewBranch (missing necessary objects)
error: failed to push some refs to 'https://gitlab.com/myProjectRepo/my-app.git'
Run Code Online (Sandbox Code Playgroud)

我得到的错误没有提到或指向任何像这里问的空对象文件.在尝试push不这样做时,它也发生在我身边commit

j4n*_*4nw 6

看起来Gitlab大约在2-3个小时之前进入了另一个SNAFU,因为写这个答案,问题就在他们身边.

https://gitlab.com/gitlab-org/gitlab-ce/issues/44068

https://gitlab.com/gitlab-com/support-forum/issues/3139