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

后端 未结 24 3002
说谎
说谎 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
    慢半拍i (楼主)
    2020-12-02 04:27

    First, You should use git pull, then 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.

提交回复
热议问题