Git merge error “commit is not possible because you have unmerged files”

后端 未结 7 1122
陌清茗
陌清茗 2020-11-29 17:11

I forgot to git pull my code before editing it; when I committed the new code and tried to push, I got the error "push is not possible".

At tha

7条回答
  •  孤独总比滥情好
    2020-11-29 17:26

    So from the error above. All you have to do to fix this issue is to revert your code. (git revert HEAD) then git pull and then redo your changes, then git pull again and was able to commit or merge with no errors.

提交回复
热议问题