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

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

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

30条回答
  •  庸人自扰
    2020-11-22 00:40

    Normal git clean command doesn't remove untracked files with my git version 2.9.0.windows.1.

    $ git clean -fdx     # doesn't remove untracked files
    $ git clean -fdx *   # Append star then it works!
    

提交回复
热议问题