| 1 |
= git-lfs-fsck(1) |
| 2 |
|
| 3 |
== NAME |
| 4 |
|
| 5 |
git-lfs-fsck - Check GIT LFS files for consistency |
| 6 |
|
| 7 |
== SYNOPSIS |
| 8 |
|
| 9 |
[source,role=synopsis,subs="verbatim,quotes"] |
| 10 |
---- |
| 11 |
*git lfs fsck* [_options_] [_revisions_] |
| 12 |
---- |
| 13 |
|
| 14 |
== DESCRIPTION |
| 15 |
|
| 16 |
Checks all Git LFS files in the current HEAD for consistency. |
| 17 |
|
| 18 |
Corrupted files are moved to ".git/lfs/bad". |
| 19 |
|
| 20 |
The revisions may be specified as either a single committish, in which |
| 21 |
case only that commit is inspected; specified as a range of the form |
| 22 |
`A..B` (and only this form), in which case that range is inspected; or |
| 23 |
omitted entirely, in which case HEAD (and, for --objects, the index) is |
| 24 |
examined. |
| 25 |
|
| 26 |
The default is to perform all checks. |
| 27 |
|
| 28 |
In your Git configuration or in a `.lfsconfig` file, you may set |
| 29 |
`lfs.fetchexclude` to a comma-separated list of paths. If |
| 30 |
`lfs.fetchexclude` is defined, then any Git LFS files whose paths match |
| 31 |
one in that list will not be checked for consistency. Paths are matched |
| 32 |
using wildcard matching as per gitignore(5). |
| 33 |
|
| 34 |
== OPTIONS |
| 35 |
|
| 36 |
`--objects`:: |
| 37 |
Check that each object in HEAD matches its expected hash |
| 38 |
and that each object exists on disk. |
| 39 |
`--pointers`:: |
| 40 |
Check that each pointer is canonical and that each file |
| 41 |
which should be stored as a Git LFS file is so stored. |
| 42 |
`-d`:: |
| 43 |
`--dry-run`:: |
| 44 |
Perform checks, but do not move any corrupted files to `.git/lfs/bad`. |
| 45 |
|
| 46 |
== SEE ALSO |
| 47 |
|
| 48 |
git-lfs-ls-files(1), git-lfs-status(1), gitignore(5). |
| 49 |
|
| 50 |
Part of the git-lfs(1) suite. |