rejected master -> master (non-fast-forward)

后端 未结 22 2001
萌比男神i
萌比男神i 2020-11-30 16:13

I\'m trying to push my project (all files in a new repository). I follow the steps but when I push with git push -u origin master I get this error:



        
22条回答
  •  天涯浪人
    2020-11-30 16:46

    As the error message says: git pull before you try to git push. Apparently your local branch is out of sync with your tracking branch.

    Depending on project rules and your workflow you might also want to use git pull --rebase.

提交回复
热议问题