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

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

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

30条回答
  •  悲哀的现实
    2020-11-22 00:48

    git clean -f
    

    will remove the untracked files from the current git

    git clean -fd
    

    when you want to remove directories and files, this will delete only untracked directories and files

提交回复
热议问题