git clean: What does “Would not remove” mean?

前端 未结 5 2017
予麋鹿
予麋鹿 2021-01-01 13:37

When I run git clean --dry-run the results are a bit like:

Would remove an_untracked_file
Would remove an_untracked_file_2
Would not remove some         


        
5条回答
  •  一个人的身影
    2021-01-01 13:58

    i'm using git version 2.10.0 on mac, and somehow i can not use

    git clean -df

    to remove the untracked files, so i used this instead:

    git checkout --

    PS:

    if anyone can explain in the comments why i'm not able to use

    git clean -df

    to remove the files, i'd be very appreciative..thanks

    WARNING you will also lose your tracked files :(

提交回复
热议问题