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
解决方案 其实很简单
:
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 -----强制运行
相关文章推荐
- dependency injection via inversion of control
- iOS开发之--C语言之数组和字符串
- 代码版本管理
- USACO The Castle 种子染色法
- 9.4 marshal--Python内部对象序列化
- 《Java程序设计》实验三 实验报告
- 9.4 marshal--Python内部对象序列化
- 如何实现并应用决策树算法?
- Redis源码分析——链表
- 个人工作总结7
- 剑桥大学的教育
- 使用git远程仓库
- 深度学习笔记——参考条目
- 浅谈Swift和Objective-C之间的那点事。。。
- 冲刺阶段第六天,4月24日。
- 安装交叉编译环境
- njust 1928 puzzle (2-sat)
- Eclipse常用快捷键
- android studio 编译的时候出现的错误和解决方法
- PHP7之Closure::call()