How do I fix “remote: fatal error in commit_refs” errors trying to push with Git?

前端 未结 8 664
情歌与酒
情歌与酒 2021-02-04 23:34

When I try to push to master I get:

remote: fatal error in commit_refs

How can I solve this?

相关标签:
8条回答
  • 2021-02-05 00:06

    Pulling down latest code from the branch solved it for me:

    git pull origin master
    git push origin master
    
    0 讨论(0)
  • 2021-02-05 00:07

    This fixed it for me:

    git gc
    

    That will start a garbage collection that resolved my error.

    0 讨论(0)
提交回复
热议问题