您的位置:首页 > 其它

git Please move or remove them before you can merge. 错误解决方案

2016-04-24 23:29 337 查看
git pull 时 往往会遇到各种各样的问题 ,下面是常遇到的一种状况

Updating 7c9e086..936acac
error: The following untracked working tree files would be overwritten by merge:
Common/HFHttpRequest/HFHttpRequestParameters.h
Common/HFHttpRequest/HFHttpRequestParameters.m

Please move or remove them before you can merge.

Aborting

解决方案 其实很简单

:

git clean  -d  -fx ""

其中

x  -----删除忽略文件已经对git来说不识别的文件

d  -----删除未被添加到git的路径中的文件

f  -----强制运行
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: