git Please move or remove them before you can merge. 错误解决方案
生活随笔
收集整理的這篇文章主要介紹了
git Please move or remove them before you can merge. 错误解决方案
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
git pull 時(shí) 往往會遇到各種各樣的問題 ,下面是常遇到的一種狀況
?
?
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
?
解決方案 其實(shí)很簡單
:
git clean -d -fx "" 其中? x -----刪除忽略文件已經(jīng)對git來說不識別的文件 d -----刪除未被添加到git的路徑中的文件 f -----強(qiáng)制運(yùn)行轉(zhuǎn)載于:https://www.cnblogs.com/wuchanming/p/5428894.html
總結(jié)
以上是生活随笔為你收集整理的git Please move or remove them before you can merge. 错误解决方案的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。