1GIT-LFS-FSCK(1) General Commands Manual GIT-LFS-FSCK(1)
2
3
4
6 git-lfs-fsck - Check GIT LFS files for consistency
7
9 git lfs fsck [options] [revisions]
10
12 Checks all Git LFS files in the current HEAD for consistency.
13
14 Corrupted files are moved to ".git/lfs/bad".
15
16 The revisions may be specified as either a single committish, in which
17 case only that commit is inspected; specified as a range of the form
18 A..B (and only this form), in which case that range is inspected; or
19 omitted entirely, in which case HEAD (and, for --objects, the index) is
20 examined.
21
22 The default is to perform all checks.
23
24 In your Git configuration or in a .lfsconfig file, you may set
25 lfs.fetchexclude to a comma-separated list of paths. If lfs.fetchex‐
26 clude is defined, then any Git LFS files whose paths match one in that
27 list will not be checked for consistency. Paths are matched using wild‐
28 card matching as per gitignore(5).
29
31 --objects
32 Check that each object in HEAD matches its expected hash and
33 that each object exists on disk.
34
35 --pointers
36 Check that each pointer is canonical and that each file which
37 should be stored as a Git LFS file is so stored.
38
40 git-lfs-ls-files(1), git-lfs-status(1), gitignore(5).
41
42 Part of the git-lfs(1) suite.
43
44
45
46 May 2022 GIT-LFS-FSCK(1)