From 2ec5fb9d50226666ecc3dba0e697387c49d5a8d0 Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Fri, 8 Jan 2021 07:15:39 -0500 Subject: [PATCH] git-check-attr: add page (#5098) --- pages/common/git-check-attr.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/git-check-attr.md diff --git a/pages/common/git-check-attr.md b/pages/common/git-check-attr.md new file mode 100644 index 0000000000..d43f468704 --- /dev/null +++ b/pages/common/git-check-attr.md @@ -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: . + +- 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}}`