When I try to push to master I get:
remote: fatal error in commit_refs
How can I solve this?
This fixed it for me:
git gc
That will start a garbage collection that resolved my error.