git push rejected

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

    If nothing works, try:

    git pull --allow-unrelated-histories  
    

    then do:

    git push --set-upstream origin master
    

提交回复
热议问题