魅力程序猿

  • 首页
  • Java
  • Android
  • APP
    • 扑克计分器
    • Video Wallpaper
  • 联系我
  • 关于我
  • 资助
道子
向阳而生
  1. 首页
  2. Git
  3. 正文

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

2016年11月3日 17412点热度 0人点赞 3条评论

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命令大全

标签: The following untracked working tree files would be overwritten by checkout
最后更新:2016年11月3日

daozi

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • Lynell

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

    2016年12月19日
    回复
  • Danice

    Unevbieballe how well-written and informative this was.

    2016年12月19日
    回复
  • 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

    2017年7月22日
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    回复 Danice 取消回复
    搜索
    联系方式

    QQ群:179730949
    QQ群:114559024
    欢迎您加入Android大家庭
    本人QQ:136049925

    赐我一丝安慰
    给我一点鼓励

    COPYRIGHT © 2023 魅力程序猿. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    豫ICP备15000477号