git push rejected

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

    First use

    git pull https://github.com/username/repository master
    

    and then try

    git push -u origin master
    

提交回复
热议问题