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