git切换分支提示失败(The following untracked working tree files would be overwritten by checkout)

git切换分支的时候报:The following untracked working tree files would be overwritten by checkout

解决方法:

1、

git rm –cached

2、

git clean -d -fx “”

-x means ignored files are also removed as well as files unknown to git.

-d means remove untracked directories in addition to untracked files.

-f is required to force it to run.
标签:GIT 发布于:2019-10-27 03:51:33