firemail
标题: The following untracked working tree files would be overwritten by merge [打印本页]
作者: Qter 时间: 2020-11-5 17:50
标题: The following untracked working tree files would be overwritten by merge
error: The following untracked working tree files would be overwritten by merge:
base/include/ipcClientConnection.h
base/include/ipcTask.h
base/src/ipcClientConnection.cpp
base/src/ipcTask.cpp
Please move or remove them before you merge.
Aborting
Updating 0bc492748..127b749b7
执行如下命令:
git reset --hard HEAD
git clean -f -d
git pull
即可。可能很多人都不明白-d,-fx到底是啥意思,其实git clean -d -fx表示:删除 一些 没有 git add 的 文件;
git clean 参数
-n 显示将要删除的文件和目录;
-x -----删除忽略文件已经对git来说不识别的文件
-d -----删除未被添加到git的路径中的文件
-f -----强制运行
欢迎光临 firemail (http://firemail.wang:8088/) |
Powered by Discuz! X3 |