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

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

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

30条回答
  •  花落未央
    2020-11-22 01:00

    This is what I always use:

    git clean -fdx
    

    For a very large project you might want to run it a couple of times.

提交回复
热议问题