git 报错

不要将项目中的编译中间文件提交到git上,否则下次客户端用git pull会报类似于这样的错误:

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/fphuang/p/7064150.html