Delete untracked files.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 12 Feb 2017 15:30:17 +0200
changeset 2080 bb2f6fcce8d4
parent 2079 5c346302c5ba
child 2081 0d9703b4a428
Delete untracked files.
hg.rst
--- 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.
 ============================================
 ::