Egit rejected non-fast-forward

前端 未结 9 1765
夕颜
夕颜 2020-12-07 07:28

I am getting this message while pushing to github repository. Can you tell me step by step procedure to fix it? I pushed only once and it was successful. But, when I updat

9条回答
  •  有刺的猬
    2020-12-07 07:45

    This error means that remote repository has had other commits and has paced ahead of your local branch.
    I try doing a git pull followed by a git push. If their are No conflicting changes, git pull gets the latest code to my local branch while keeping my changes intact.
    Then a git push pushes my changes to the master branch.

提交回复
热议问题