git-lfs-pointer1
Build, compare, and check pointers
Usage
git lfs
pointer
--file=path/to/file
git lfs
pointer
--file=path/to/file
--pointer=path/to/pointer
git lfs
pointer
--file=path/to/file
--stdin
git lfs
pointer
--check
--file=path/to/file
Overview
Builds and optionally compares generated pointer files to ensure consistency between different Git LFS implementations.
Options
-
-f,--file -
A local file to build the pointer from.
-
-p,--pointer -
A local file including the contents of a pointer generated from another implementation. This is compared to the pointer generated from
--file.
-
--stdin -
Reads the pointer from STDIN to compare with the pointer generated from
--file.
-
--check -
Reads the pointer from STDIN (if
--stdinis given) or the filepath (if--file) is given. If neither or both of--stdinand--fileare given, the invocation is invalid. Exits 0 if the data read is a valid Git LFS pointer. Exits 1 otherwise.
-
--strict,--no-strict -
In conjunction with
--check,--strictverifies that the pointer is canonical; that is, it would be the one created by Git LFS. If it is not, exits 2. The default, for backwards compatibility, is--no-strict, but this may change in a future version.
-
--no-extensions -
Don’t print the extensions of the pointer.
Releases
5 releases since Debian 10 (Buster); the text changed 4 times.
--no-extensions since Arch Linux 2026-11-01;
--no-strict since Debian 12 (Bookworm);
--strict since Debian 12 (Bookworm);
-f since Arch Linux 2026-11-01;
-p since Arch Linux 2026-11-01.