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

后端 未结 5 856
天涯浪人
天涯浪人 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:36

    I just faced the same issue and solved it using the following.First clear tracked files by using :

    git clean -d -f
    

    then try git pull origin master

    You can view other git clean options by typing git clean -help

提交回复
热议问题