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

前端 未结 8 802
情歌与酒
情歌与酒 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-04 23:51

    Try rebase the current branch on top of the upstream branch after pull, e.g.

    git pull origin master -r
    

    then push it again:

    git push origin master
    

提交回复
热议问题