commands.sh

git check-attr

all

For every pathname, list if each attribute is unspecified, set, or unset as a gitattribute on that pathname.

More info →

Options (1)

-a, --allboolean

Check the values of all attributes on a file

Example: git check-attr {{[-a|--all]}} {{path/to/file}}

Examples (4)

Check the values of all attributes on a file

git check-attr [-a|--all] path/to/file

Check the value of a specific attribute on a file

git check-attr attribute path/to/file

Check the values of all attributes on specific files

git check-attr [-a|--all] path/to/file1 path/to/file2 ...

Check the value of a specific attribute on one or more files

git check-attr attribute path/to/file1 path/to/file2 ...
made by @shridhargupta | data from tldr-pages