hg.rst
changeset 2080 bb2f6fcce8d4
parent 1912 8b81a8f0f692
child 2103 a21980c282c8
--- a/hg.rst	Thu Feb 09 23:45:24 2017 +0200
+++ b/hg.rst	Sun Feb 12 15:30:17 2017 +0200
@@ -485,6 +485,21 @@
 
   $ hg rebase -s 'draft() & branch(.)' -d 'public() & branch(.)'
 
+Delete untracked files
+======================
+
+With ``purge`` extention enabled::
+
+  $ hg purge
+
+To ignore ``.hgignore``::
+
+  $ hg purge --all
+
+Without ``purge`` extention::
+
+  $ hg st -un0 | xargs -0 rm
+
 Find greatest common ancestor of changesets.
 ============================================
 ::