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

时间:2022-07-22
本文章向大家介绍git pull 报错:The following untracked working tree files would be overwritten by merge,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

场景

使用 git pull 命令更新报错

Updating d652d1c..fa05549 error: The following untracked working tree files would be overwritten by merge:.idea/encodings.xml

Please move or remove them before you can merge. Aborting

解决

使用 git clean -d -fx 命令即可。