mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
git-check-attr: add page (#5098)
This commit is contained in:
parent
f96f2f5a3f
commit
2ec5fb9d50
1 changed files with 20 additions and 0 deletions
20
pages/common/git-check-attr.md
Normal file
20
pages/common/git-check-attr.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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}}`
|
||||
|
||||
- Check the value of a specific attribute on files:
|
||||
|
||||
`git check-attr --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}}`
|
Loading…
Add table
Reference in a new issue