Remove untracked files from Mercurial repository

/ Published in: Bash
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  1. hg status -u -0 | xargs rm

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.