1

I did clone a master branch, created a new branch and made changes, commit and try to push using the following command:

git push origin myNewBranch, but I keep getting the following error:

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'

The error I get doesn't mention or point to any empty object file like asked here. And also it happens from my side when trying to push not commit

k.vincent
  • 2,975
  • 6
  • 27
  • 56

1 Answers1

6

It seems like Gitlab got themselves into yet another SNAFU about 2-3 hours ago as of writing this answer, and the problem is on their side.

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

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

j4nw
  • 1,720
  • 9
  • 23