Corrupted repository "remote: fatal: bad object HEAD"
We have a private repo over Gitlab.com, and for about 30 minutes now we haven't been abled to push anything, neither new branches nor existing branches.
I've tried also from a clean clone of the repo, and starting from old branches. Every time we receive something like this (it changes the branch or the compression):
▶ git push
Counting objects: 20, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (20/20), done.
Writing objects: 100% (20/20), 1.67 KiB | 0 bytes/s, done.
Total 20 (delta 17), reused 0 (delta 0)
fatal: bad object HEAD
remote: fatal: bad object HEAD
To git@gitlab.com:nextbit/damneat-group/***.git
! [remote rejected] feature/#130-change-initial-filter-status -> feature/#130-change-initial-filter-status (missing necessary objects)
error: failed to push some refs to 'git@gitlab.com:nextbit/damneat-group/***.git'
I have tried to check if something is broken in the git history, but I found nothing:
▶ git fsck --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (3589/3589), done.
▶ git gc
Counting objects: 3589, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1090/1090), done.
Writing objects: 100% (3589/3589), done.
Total 3589 (delta 2438), reused 3589 (delta 2438)
▶ git push --set-upstream origin feature/test-from-master
Total 0 (delta 0), reused 0 (delta 0)
remote: fatal: bad object HEAD
fatal: bad object HEAD
To git@gitlab.com:nextbit/damneat-group/***.git
! [remote rejected] feature/test-from-master -> feature/test-from-master (missing necessary objects)
error: failed to push some refs to 'git@gitlab.com:nextbit/damneat-group/***.git'
I have also run the Housekeeping
feature here on Gitlab.com.
There is a way to remove the repo and push it again? Or to recover the status somehow?