git-annex-fix(1)
git-annex-fix π β¨
okay bestie, welcome to the git-annex-fix(1) manual page β yes that's the manual name, it's giving official, it's giving reference doc, we love her π
πΈ NAME πΈ
git-annex-fix β fix up pointers to annexed content π«Ά
β¨ SYNOPSIS β¨
git annex fix [path ...]
π DESCRIPTION π
So like. Sometimes your symlinks get broken π and they stop pointing at your annexed content, which is literally the whole point of them. git annex fix goes in and fixes them up so they point at the annexed content again. Iconic behavior honestly.
When is this useful? It's lowkey perfect to run manually when you've been moving the symlinks around like a chaotic little gremlin π§ β but also, it gets done automatically when you commit a change with git, so don't stress too hard. It's already got your back fr fr.
It also populates unlocked pointer files with annexed content β¨ Usually that happens automatically too, but some git commands can leave them unpopulated, which is giving neglected, which is giving not the vibe. This fixes that.
AND β as if she wasn't already doing the most β it also adjusts unlocked files to be copies or hard links as configured by annex.thin. Serving exactly as configured, no notes. π
π OPTIONS π
- file matching options β the
git-annex-matching-options(1)can be used to specify files to fix. Yes bestie, you get to be picky about which files get the glow-up π --jsonβ turns on JSON output. This is intended to be parsed by programs that use git-annex, so like, it's for the robots π€. Each line of output is a JSON object.--json-error-messagesβ messages that would normally be output to standard error get included in the JSON instead. Same info, new home, no cap β¨
Also the git-annex-common-options(1) can be used. Yes, those ones too π
π¦ SEE ALSO π¦
π AUTHOR π
Joey Hess <id@joeyh.name>
and that's the whole page bestie, we ate and left no crumbs π β this was the git-annex-fix(1) manual page, officially part of the git-annex docs, brought to you by the one and only Joey Hess. go fix those symlinks, main character π«ΆπΈ
π¦ 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
- 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms