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

Posted 我的大刀早已饥渴难耐

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git pull报error: Untracked working tree file 'public/images/icon.gif' would be overwritten by相关的知识,希望对你有一定的参考价值。

error: Untracked working tree file ‘public/images/icon.gif‘ would be overwritten by merge.
需要执行下面的命令才能修复:


git reset --hard HEAD    
git clean -f -d    
git pull  

以上是关于git pull报error: Untracked working tree file 'public/images/icon.gif' would be overwritten by的主要内容,如果未能解决你的问题,请参考以下文章

idea中git操作提示Untracked Files Prevent Pull

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

git pull冲突报错

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

git 常见冲突—— git pull遇到报错Your local changes to the following files would be overwritten by merge