Posted By

jonathanpglick on 10/26/10


Versions (?)

Remove untracked files from Mercurial repository

 / Published in: Bash

the -u flag only lists items that are "unknown", -0 prepares the filenames for xargs.

xargs then runs "rm" on each of the listed files.

  1. hg status -u -0 | xargs rm

Report this snippet  

You need to login to post a comment.