hg-purge - Man Page

removes files not tracked by Mercurial

Synopsis

hg purge [OPTION]... [DIR]...

Description

Delete files not known to Mercurial. This is useful to test local and uncommitted changes in an otherwise-clean source tree.

This means that purge will delete the following by default:

Options

-a,  --abort-on-err

abort if an error occurs

--all

purge ignored files too

-i,  --ignored

purge only ignored files

--dirs

purge empty directories

--files

purge files

-p,  --print

print filenames instead of deleting them

-0,  --print0

end filenames with NUL, for use with xargs (implies -p/--print)

--confirm

ask before permanently deleting files

-I,--include <PATTERN[+]>

include names matching the given patterns

-X,--exclude <PATTERN[+]>

exclude names matching the given patterns

[+] marked option can be specified multiple times

Aliases

clean