Git pull - Please move or remove them before you can merge

后端 未结 5 759
天涯浪人
天涯浪人 2021-01-30 10:25

I am trying to do a git pull origin master from my server but keep getting the error:

Please move or remove them before you can merge.

5条回答
  •  清歌不尽
    2021-01-30 10:51

    If you are getting error like

    • branch master -> FETCH_HEAD error: The following untracked working tree files would be overwritten by merge: src/dj/abc.html Please move or remove them before you merge. Aborting

    Try removing the above file manually(Careful). Git will merge this file from master branch.

提交回复
热议问题