error: The following untracked working tree files would be overwritten by merge: linjulu/.DS_Store

来源:互联网 发布:从零开始学java 编辑:程序博客网 时间:2024/06/06 05:41

git pull 时 往往会遇到各种各样的问题 ,下面是常遇到的一种状况;

error: The following untracked working tree files would be overwritten by merge:

linjulu/.DS_Store

linjulu/Linjulu/.DS_Store

linjulu/Linjulu/SmallImg/.DS_Store

Please move or remove them before you can merge.

Aborting


解决方案 其实很简单(在控制台输入下面的语句就ok了)

:

git clean  -d  -fx ""
其中 
x  -----删除忽略文件已经对git来说不识别的文件
d  -----删除未被添加到git的路径中的文件
f  -----强制运行
希望能帮到大家;
0 0