How do I delete all untracked files from my working directory in Mercurial?

前端 未结 10 500
长情又很酷
长情又很酷 2021-01-29 18:11

Is it possible to delete all untracked files from my working directory? Let\'s say I added a bunch of files to my working directory, didn\'t add them via \'hg add\' and now want

10条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-29 18:48

    rm $(hg st -u)
    

    ...where -u stands for "untracked" you can also pick another state.

提交回复
热议问题