When I try to push to master I get:
remote: fatal error in commit_refs
How can I solve this?
In my case I suspect a hung git process was causing the problem; I killed it and retried and the problem went away.