---
name: "git-annex-fix"
section: "1"
platform: "linux"
package: "git-annex"
version: "10.20261026-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/git-annex-fix"
---

# git-annex-fix(1)

fix up pointers to annexed content

## NAME

git-annex-fix - fix up pointers to annexed content

## SYNOPSIS

git annex fix **\[path ...\]**

## DESCRIPTION

Fixes up symlinks that have become broken to again point to annexed content. This is useful to run manually when you have been moving the symlinks around, but is done automatically when committing a change with git too.

Also, populates unlocked pointer files with annexed content.  Usually this happens automatically, but some git commands can leave them  unpopulated.

Also, adjusts unlocked files to be copies or hard links as configured by annex.thin.

## OPTIONS

- file matching options

  -

  The [git-annex-matching-options(1)](/git-annex-matching-options/1.md) can be used to specify files to fix.

-

  - **--json**

  Enable JSON output. This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object.

-

  - **--json-error-messages**

  Messages that would normally be output to standard error are included in the JSON instead.

-

  - Also the [git-annex-common-options(1)](/git-annex-common-options/1.md) can be used.

  ## SEE ALSO

[git-annex(1)](/git-annex/1.md)

[git-annex-fsck(1)](/git-annex-fsck/1.md)

## AUTHOR

Joey Hess \<id@joeyh.name\>
