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

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 -----强制运行

 

posted @ 2018-07-14 13:28  慕容冰菡  阅读(427)  评论(0编辑  收藏  举报