getting errors on git push because power went off while making a commit
after my last commit the power went off
now my branch is ahead by 15 commit but if I try to push I get that it's up to date and if I explicitly set the branch name I get a message error about empty objects
On branch social-extend
Your branch is ahead of 'origin/social-extend' by 15 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
➜ movie-club git:(social-extend) git push origin main
Everything up-to-date
➜ movie-club git:(social-extend) git push origin social-extend:social-extend
Enumerating objects: 163, done.
error: object file .git/objects/b8/faab9ddc086e929e1cd4f3f7884d480bca1bf6 is empty
error: object file .git/objects/cd/252c822087502d94f67e019c0790c4acec8503 is empty
Counting objects: 100% (163/163), done.
Delta compression using up to 12 threads
Compressing objects: 100% (122/122), done.
error: object file .git/objects/b8/faab9ddc086e929e1cd4f3f7884d480bca1bf6 is empty
fatal: unable to read b8faab9ddc086e929e1cd4f3f7884d480bca1bf6
remote: fatal: early EOF
error: remote unpack failed: index-pack failed
To github.com:SuperMo0/MoviesClub.git
! [remote rejected] social-extend -> social-extend (failed)
error: failed to push some refs to 'github.com:SuperMo0/MoviesClub.git'