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

后端 未结 5 777
天涯浪人
天涯浪人 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 11:02

    If there are too many files to delete, which is actually a case for me. You can also try the following solution:

    1) fetch

    2) merge with a strategy. For instance this one works for me:

    git.exe merge --strategy=ours master
    

提交回复
热议问题