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

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


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

原文地址:https://www.cnblogs.com/dragonh/p/7647591.html