'When system reset I get "git error object file is empty"

While writing a commit and trying to push to bitbucket failed and I got an error I tried to do everything like in this article https://howto.lintel.in/fix-git-object-file-empty-error/

But now I have a link to another empty file and an additional error for refs/heads/master

Checking objects: 100% (44450/44450), done.
error: refs/heads/master: invalid reflog entry e532275d3cf4cd02101c28d9ef46d541cb80d570
error: HEAD: invalid reflog entry e532275d3cf4cd02101c28d9ef46d541cb80d570
error: object file .git/objects/72/291ff58e5822169ad13acc31c5edbdd2f67afb is empty
fatal: loose object 72291ff58e5822169ad13acc31c5edbdd2f67afb (stored in .git/objects/72/291ff58e5822169ad13acc31c5edbdd2f67afb) is corrupt

How do I fix this further, nothing helps. Am I even ready to roll back all changes to the current origin/master or is there still some correct way?

I will be grateful for help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source