git 更新提交文件 overwritten by merge

error: Your local changes to the following files would be overwritten by merge:
	文件
Please commit your changes or stash them before you can merge.
error: The following untracked working tree files would be overwritten by merge:
	文件
Please move or remove them before you can merge.
Aborting

只要解決了這些 untracked 的文件就能解決這個問題。 經過命令行,你直接執行 git clean -d -fx 便可 其中git

x  -----刪除忽略文件已經對git來講不識別的文件
d  -----刪除未被添加到git的路徑中的文件
f  -----強制運行
相關文章
相關標籤/搜索