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

前端 未结 5 2016
予麋鹿
予麋鹿 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 14:23

    By default, git clean doesn't remove folders. It's telling you that it sees an untracked folder, but it won't remove it. Give it the -d flag to instruct it to remove directories as well, as in git clean -d -n

提交回复
热议问题