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  

 

posted @ 2017-06-22 11:43  NOIP/NOI辅导  Views(113)  Comments(0Edit  收藏  举报