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.

 

相关:

1. Git之多账号配置

2.Git命令大全

评论

3条评论
  1. Gravatar 头像

    Lynell

    Th’ats going to make things a lot easier from here on out.

  2. Gravatar 头像

    Ronny1979

    Hi admin, do you monetize your website ?
    There is easy way to earn extra money every month, just search on youtube :
    How to earn with wordai 4

发表评论