GIT-LFS-FSCK(1)
π NAME π
git-lfs-fsck β check GIT LFS files for consistency, bestie. This is the little consistency-checker for your GIT LFS files, and it is lowkey essential.
β¨ SYNOPSIS β¨
git lfs fsck [options] [revisions]
π¦ DESCRIPTION π¦
okay so git-lfs-fsck checks all Git LFS files in your current HEAD for consistency. No cap, that's the whole main character job.
π¨ Corrupted files get moved to .git/lfs/bad. So yeah, the messy ones get sent to their own little corner.
Now for the revisions situation, because it's giving options:
- If you pass a single
committish, only that commit is inspected. - If you pass a range in the form
A..Bβ and only this form β that range is inspected. - If you omit
revisionsentirely, it examinesHEAD(and, for--objects, theindex).
The default is to perform all checks. Periodt. π
In your Git configuration or in a .lfsconfig file, you can set lfs.fetchexclude to a comma-separated list of paths. If lfs.fetchexclude is defined, then any Git LFS files whose paths match one in that list will not be checked for consistency. Paths are matched using wildcard matching as per gitignore(5). iykyk.
π OPTIONS π
--objectsβ check that each object inHEADmatches its expected hash and that each object exists on disk.--pointersβ check that each pointer is canonical and that each file which should be stored as a Git LFS file is so stored.-d,--dry-runβ perform checks, but do not move any corrupted files to.git/lfs/bad.
π SEE ALSO π
git-lfs-ls-files(1), git-lfs-status(1), gitignore(5).
Part of the git-lfs(1) suite. π«Ά
Sign-off from the footer: it's just GIT-LFS-FSCK(1) β no extra source/version/date info, so that's the whole tag, bestie. π
π¦ where this page comes from
- arch rolling: git-lfs 3.8.1-1 Β· MIT
- nixos 26.05: git-lfs 3.8.1
- nixpkgs unstable: git-lfs 3.8.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms