git-annex-forget(1)

πŸ“¦
version 10.20261026 Β· 2 versions
  • 10.20261026 Β· alpine 3.24, arch rolling, debian bookworm, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 8.20210223 Β· ubuntu jammy
, in alpine 3.24, arch rolling, debian bookworm, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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 πŸ’–πŸŽ€πŸŒΈ