HG(PURGE)
β¨ hg purge β¨
okay bestie, welcome to the hg purge page from the Mercurial manual π this one's a little chaotic but we're gonna get through it together, i promise π«Ά
πΈ NAME πΈ
hg purge β removes files not tracked by Mercurial π
π SYNOPSIS π
hg purge [OPTION]... [DIR]...
π¦ DESCRIPTION π¦
so basically: it deletes files that Mercurial doesn't know about. no cap. it's giving "test local and uncommitted changes in an otherwise-clean source tree" energy β¨
which means, by default, purge is gonna delete these:
- Unknown files β the ones marked with
"?"byhg statusπ - Empty directories β like, Mercurial literally ignores directories unless they contain files under source control management ποΈ
but bestie, it will leave these untouched:
- Modified and unmodified tracked files β safe, protected, main character energy π
- Ignored files β unless
-ior--allis specified π - New files added to the repository (with
hg add) π«Ά
the --files and --dirs options let you direct purge to delete only files, only directories, or both. if you don't give either option, both get deleted π
if directories are given on the command line, only files in these directories are considered π
β οΈ be careful with purge, fr fr. you could irreversibly delete some files you forgot to add to the repository π if you only want to print the list of files that this program would delete, use the --print option. do that first. seriously. π
π 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 π¨οΈ (the safe bestie option)-0,--print0β end filenames withNUL, for use withxargs(implies-p/--print) β¨--confirmβ ask before permanently deleting files πββοΈ-I,--includePATTERN[+] β include names matching the given patterns π-X,--excludePATTERN[+] β exclude names matching the given patterns π«
[+] marked option can be specified multiple times π
β ALIASES β
clean π§Ό
and that's the whole page, bestie!! go forth and purge responsibly, or likeβ¦ don't, and use --print instead, iykyk πβ¨ππ¦πΈπ
π«Ά
this has been HG(PURGE) from the Mercurial manual β thanks for reading, love u, bye π
π¦ where this page comes from
- arch rolling: mercurial 7.2.4-1 Β· GPL
- fedora 43: mercurial 7.1.1-1.fc43 Β· GPL-2.0-or-later
- fedora 43: mercurial 7.1.1-2.fc43 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2-1.fc44 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2.4-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: mercurial 7.1.2
- nixos 26.05: mercurial-full 7.1.2
- nixpkgs unstable: mercurial 7.2.2
- nixpkgs unstable: mercurial-full 7.2.2
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms