git-annex-setpresentkey(1)
π git-annex-setpresentkey β change records of where key is present π
okay bestie, welcome to the git-annex-setpresentkey(1) page, straight out of the General Commands Manual β¨ this one's a lil niche but it's so real, let's get into it π«Ά
β¨ SYNOPSIS β¨
git annex setpresentkey key uuid [1|0]
that's it. three-ish args and a vibe. slay π
πΈ DESCRIPTION πΈ
so. this is a plumbing-level command, which is a fancy way of saying it's the under-the-hood one, not the one you'd casually type on a Tuesday. what it does is change git-annex's records about whether the specified key's content is present in a remote with the specified uuid. it's literally editing the bookkeeping, no cap π
and then the big question: do you pass a 1 or a 0?
1β indicates the key is present β0β indicates the key is not present β
iconic little binary moment. it's giving binary. it's giving boolean. we love her π
β¨ OPTIONS β¨
--batchβ turns on batch mode, where lines get read from stdin π§ the line format is exactly"key uuid [1|0]"β keep it in that shape, bestie, don't freestyle it π--jsonβ enables JSON output. this is meant to be parsed by programs that use git-annex, so like, robots eat this one, not you π every line of output is a JSON object.--json-error-messagesβ messages that would normally go out to standard error get tucked into the JSON instead π¦ so everything lands in one tidy lil stream.- also the
git-annex-common-options(1)can be used, periodt π₯
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name> β the moment, the icon, the legend β
okay that's the whole page!! tysm for reading, you ate that π
this was git-annex-setpresentkey(1) from the General Commands Manual β go forth and set those present-keys correctly, bestie π¦πΈβ¨
π¦ 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 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