git Please move or remove them before you can merge

转载请注明出处:

  在git pull时报错:

error: The following untracked working tree files would be overwritten by merge:
fucdn-test/.gitignore
Please move or remove them before you merge.

解决办法如下:

  

使用以下命令即可:

git clean  -d  -fx ""
d  -----删除未被添加到git的路径中的文件
f  -----强制运行
x  -----删除忽略文件已经对git来说不识别的文件
原文地址:https://www.cnblogs.com/zjdxr-up/p/10941733.html