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

前端 未结 10 519
长情又很酷
长情又很酷 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:46

    This works from Windows 10 command line (used cautiously of course):

    for /f %g in ('hg status -un') do @echo %g & @del %g
    

提交回复
热议问题