git push rejected

后端 未结 8 2020
無奈伤痛
無奈伤痛 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:21

    Actually I got the same error but the below comment worked for me

    git push -f origin master
    

提交回复
热议问题