diff --git a/pages/common/git-var.md b/pages/common/git-var.md new file mode 100644 index 00000000000000..1b234177158a42 --- /dev/null +++ b/pages/common/git-var.md @@ -0,0 +1,13 @@ +# git var + +> Prints a Git logical variable's value. +> See `git config`, which is preferred over `git var`. +> More information: . + +- Print the value of a Git logical variable: + +`git var {{GIT_AUTHOR_IDENT|GIT_COMMITTER_IDENT|GIT_EDITOR|GIT_PAGER}}` + +- [l]ist all Git logical variables: + +`git var -l`