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

后端 未结 24 3004
说谎
说谎 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条回答
  •  旧时难觅i
    2020-12-02 04:29

    You should use git pull, that´s command do a git fetch and next do the git merge.

    If you use a git push origin master --force command, you may have problems in the future.

提交回复
热议问题