首页 > 其他 > 详细

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

时间:2020-05-23 14:23:05      阅读:51      评论: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命令

$git clean -d -fx .

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

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

f -----强制运行

注意:会把硬盘中,很多未被跟踪的文件会被删除!特别是新建的文件。

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

原文:https://www.cnblogs.com/tochw/p/12942280.html

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