! [rejected] master -> master (fetch first)

后端 未结 24 3001
说谎
说谎 2020-12-02 04:15

Is there a good way to explain how to resolve \"! [rejected] master -> master (fetch first)\'\" in Git?

When I use this command $ git push or

24条回答
  •  感动是毒
    2020-12-02 04:43

    Your error might be because of the merge branch.
    Just follow this:

    step 1 : git pull origin master (in case if you get any message then ignore it)
    step 2 : git add .
    step 3 : git commit -m 'your commit message'
    step 4 : git push origin master

提交回复
热议问题