git-annex-log(1)
πΈ git-annex-log(1) β the tea on your location log π
okay bestie, welcome to git-annex-log, part of the General Commands Manual (section 1, we're fancy like that). this is the page where we spill everything about your file locations, so grab a boba and let's go π§β¨
β¨ NAME β¨
git-annex-log β shows location log information
π¦ SYNOPSIS π¦
git annex log [path ...]
π DESCRIPTION π
this command serves up the history of the git-annex branch. it's giving detective energy, it's giving receipts, it's giving "where did my files actually go" π
but lowkey, sometimes that info just isn't there to show you. and there are a few reasons why, no cap:
- when git-annex-forget is used, old historical data gets cleared from the branch. poof, gone, bye π
- when
annex.privateorremote.name.annex-privateis configured, git-annex does not write information to the branch at all. nothing to read if nothing was ever written, bestie. - and when
annex.alwayscommitis set tofalse, information may not have been committed to the branch yet. it's just sitting there in limbo, not yet main character π«
π OPTIONS π
[path ...]β shows you the location log for the file or files you name, and it's giving a whole story: each repository they were added to shows up as+, and each one they were removed from shows up as-. β οΈ important though: it's telling you about the file content currently at these paths, not any different content that was chilling there in earlier commits. so don't get it twisted.- matching options β you can use git-annex-matching-options(1) to control what it acts on when displaying the location log for specified files. filter away, icon β¨
--all,-Aβ shows location log changes to all content, with the most recent changes first. in this mode the names of files are not available, so you get keys displayed instead. keys not names, that's the vibe.--key=keynameβ displays the location log for the specified key. just the one, very exclusive π--branch=refβ displays the location log for the files in the specified branch or treeish. pick your timeline, bestie.--unusedβ displays the location log for files found by the last run ofgit-annex unused. yes, the leftovers, we love them here π--sizesof=repositoryβ displays a history of the total size of the annexed files in a repository over time, from the creation of the repository all the way to the present. a whole glow-up timeline π
the repository can be "here" for the current repository, or the name of a remote, or a repository description or uuid.
heads up: keys that do not have a known size are not included in the total. so the number is what it is, fr fr.
--sizesβ this is like--sizesof, but instead of the size of a single repository it displays the sizes of all known repositories. the whole friend group, in one view π
the output is a CSV formatted table.
--totalsizesβ this is like--sizesof, but it displays the total size of all known repositories. the grand total, the big picture, the final boss π―--interval=timeβ when you're using--sizesof,--sizes, and--totalsizes, this controls the minimum interval between displays of the size. the default is to display each new recorded size. the time is of the form"30d"or"1y". so like,1y? a whole year of receipts, okay periodt ποΈ--receivedβ combine this option with--sizesofor--sizesto display the amount of data received into repositories since the last line was output. new data, new you π--gnuplotβ combine this option with--sizesofor--sizesor--totalsizesto use gnuplot(1) to graph the data. the gnuplot file will be left on disk for you to reuse. graphs!! aesthetic!! πβ¨
for example, to graph the sizes of all repositories:
git-annex log --sizes --interval=1d --gnuplot
to graph the amount of new data received into each repository every 30 days:
git-annex log --sizes --interval=30d --gnuplot --recieved
--bytesβ show sizes in bytes, disabling the default nicer units. sometimes you just want the raw numbers, ngl π’--raw-dateβ rather than the normal display of a date in the local time zone, displays seconds since the unix epoch. unix girlies rise π°οΈ--since=date,--after=date,--until=date,--before=date,--max-count=Nβ these options are passed through togit log, and can be used to limit how far back to search for location log changes.
for example: --since "1 month ago"
these options do not have an affect when using--sizesof,--sizes, and--totalsizes. just so you know π
--gourceβ generates output suitable for the gource visualization program. pretty pictures time π¨
this option does not have an affect when using--sizesof,--sizes, and--totalsizes.
--jsonβ enable JSON output. this is intended to be parsed by programs that use git-annex. each line of output is a JSON object. machine-readable slay π€
this option does not have an affect when using--sizesof,--sizes, and--totalsizes.
--json-error-messagesβ messages that would normally be output to standard error are included in the JSON instead. no more stderr sneaking around behind your back π
this option does not have an affect when using--sizesof,--sizes, and--totalsizes.
- also the git-annex-common-options(1) can be used. the whole squad of shared flags, we stan π«Ά
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name> β thank you king π
okay that's the whole page bestie, you're officially fluent in git-annex-log πΈ this was git-annex-log(1) from the General Commands Manual, and that's a wrap β go log something iconic. 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 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 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