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

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

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

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

    Simple Way to remove untracked files

    To remove all untracked files, The simple way is to add all of them first and reset the repo as below

    git add --all
    git reset --hard HEAD
    

提交回复
热议问题