git push rejected

后端 未结 8 2080
無奈伤痛
無奈伤痛 2020-12-22 23:50

I give up! Whenever I try to push I get a stupid:

! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to \'git@github         


        
8条回答
  •  时光取名叫无心
    2020-12-23 00:07

    First, attempt to pull from the same refspec that you are trying to push to.

    If this does not work, you can force a git push by using git push -f , but use caution: this method can cause references to be deleted on the remote repository.

提交回复
热议问题