How to remove local (untracked) files from the current Git working tree

前端 未结 30 2118
死守一世寂寞
死守一世寂寞 2020-11-22 00:07

How do you delete untracked local files from your current working tree?

30条回答
  •  温柔的废话
    2020-11-22 00:48

    If untracked directory is a git repository of its own (e.g. submodule), you need to use -f twice:

    git clean -d -f -f

提交回复
热议问题