首页 > 其他 > 详细

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

时间:2016-04-25 00:23:47      阅读:504      评论:0      收藏:0      [点我收藏+]

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  -----强制运行

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

原文:http://www.cnblogs.com/wuchanming/p/5428894.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!