2014年11月20日 星期四

[git]error: The following untracked working tree files would be overwritten by checkout:


在git checkout 時發生

$ git checkout 8c
error: The following untracked working tree files would be overwritten by checkout:

通常那些untracked 的 file應該也不會是想保留的,
可以使用

git clean -dfx



來 Remove untracked files from the working tree

git-clean(1)
https://www.kernel.org/pub/software/scm/git/docs/git-clean.html 


git merge - Git error: The following untracked working tree files would be overwritten by checkout - Stack Overflow
http://stackoverflow.com/questions/4858047/git-error-the-following-untracked-working-tree-files-would-be-overwritten-by-ch


沒有留言:

張貼留言