git-annex-forget(1)
π git-annex-forget(1) β General Commands Manual π
okay bestie, so this is the manual page for git-annex-forget from the General Commands Manual, and it is genuinely one of those "spring cleaning for your repo" situations, no cap β¨
πΈ NAME πΈ
git-annex-forget β prune git-annex branch history
π¦ SYNOPSIS π¦
git annex forget
β¨ DESCRIPTION β¨
so basically this makes the git-annex branch get rewritten, and the whole vibe is that it throws away historical data about past locations of files. past locations. gone. poof. π¨
the resulting branch will use less space, which is slay, but heads up: git annex log will not be able to show where files used to be located anymore. it's giving amnesia but make it storage-efficient π§ β¨
now here's the part that is genuinely iconic and also a little bit terrifying β when this rewritten branch gets merged into other clones of the repository, git-annex will automatically perform the same rewriting to their local git-annex branches. so the forgetfulness just... propagates. out from its starting point. until all repositories running git-annex have forgotten their old history. it spreads like a rumor fr fr π
lowkey important: you may need to force git to push the branch to any git repositories that are not running git-annex. those ones don't get the memo automatically bestie, you gotta tell them yourself π
π OPTIONS π
--drop-deadβ also prune references to repositories that have been marked as dead. like, if a repo is already dead to you, this cleans up the leftovers too. no ghosts, only closure πͺ¦β¨
also the git-annex-common-options(1) can be used. yes queen, the classics still apply π
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name>
okay that's the whole page bestie!! and yes, the footer really is just the manual name again β git-annex-forget(1) β waving at you from the bottom like the little signature it is π«Ά go forth and forget responsibly, mwah πππΈ
π¦ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 Β· AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 Β· AGPL-3.0-only
- debian bookworm: git-annex 10.20230126-3 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 Β· AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 Β· AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 Β· AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu noble: git-annex 10.20240129-1build1 Β· AGPL-3.0-or-later
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms