Some untracked working tree files would be overwritten by checkout. Please move or remove them befor

Posted michelle20180227

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Some untracked working tree files would be overwritten by checkout. Please move or remove them befor相关的知识,希望对你有一定的参考价值。

Some untracked working tree files would be overwritten by checkout.
Please move or remove them before you can checkout. View them

 

1.webStrom报错类型:

Some untracked working tree files would be overwritten by checkout.
Please move or remove them before you can checkout. View them

技术分享图片

 

 2.解决办法:

在控制台Terminal输入:

技术分享图片

Git clean -d -fx  "报错的文件或文件夹"

其中:

 -x -----删除忽略文件已经对git来说不识别的文件

-d -----删除未被添加到git的路径中的文件

-f -----强制运行

 



以上是关于Some untracked working tree files would be overwritten by checkout. Please move or remove them befor的主要内容,如果未能解决你的问题,请参考以下文章

Error pulling origin: error: The following untracked working tree files would be overwritten by...(示

git解决error: The following untracked working tree files would be overwritten by checkout

Git - Error:The following untracked working tree files would be overwritten by checkout

vscode 切换分支时报错:The following untracked working tree files would be overwritten .....

git pull 错误:The following untracked working tree files would be overwritten by merge

git pull报error: Untracked working tree file 'public/images/icon.gif' would be overwritten by