Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
git-check-attr Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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 values of all attributes on specific 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 ...}}`