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

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

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

30条回答
  •  被撕碎了的回忆
    2020-11-22 00:59

    Clean out git repository and all submodules recursively

    The following command will clean out the current git repository and all its submodules recursively:

    (git clean -d -x -f && git submodule foreach --recursive git clean -d -x -f)
    

提交回复
热议问题