當我git pull origin development
,我得到了錯誤:錯誤:未跟蹤的工作樹文件
error: Untracked working tree file '<path-to-file>' would be overwritten by merge
的原因是因爲一個文件,該文件是在remote development branch
不把我的本地項目與git(我不想該版本控制文件,git rm
)。但在remote development
上,該文件退出用於版本控制
如何解決此問題?基本上,我想遠程分支也從版本控制中刪除文件。
可能重複http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull – vpatil 2012-02-14 10:49:09