1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-09 11:46:01 +02:00
tldr/pages/common/git-check-attr.md
Managor 0e8893e1ba
git*: refresh pages (#16372)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-05-05 09:12:13 +03:00

653 B

git check-attr

For every pathname, list if each attribute is unspecified, set, or unset as a gitattribute on that pathname. More information: https://git-scm.com/docs/git-check-attr.

  • 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 ...}}