2021-01-08 12:15:39 +00:00
|
|
|
# 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 --all {{path/to/file}}`
|
|
|
|
|
|
|
|
- Check the value of a specific attribute on a file:
|
|
|
|
|
|
|
|
`git check-attr {{attribute}} {{path/to/file}}`
|
|
|
|
|
2024-01-03 08:40:31 +00:00
|
|
|
- Check the values of all attributes on specific files:
|
2021-01-08 12:15:39 +00:00
|
|
|
|
2024-01-03 08:40:31 +00:00
|
|
|
`git check-attr --all {{path/to/file1 path/to/file2 ...}}`
|
2021-01-08 12:15:39 +00:00
|
|
|
|
|
|
|
- Check the value of a specific attribute on one or more files:
|
|
|
|
|
2024-01-03 08:40:31 +00:00
|
|
|
`git check-attr {{attribute}} {{path/to/file1 path/to/file2 ...}}`
|