From 2ee3968c441cddd1b61a727cc30329ec27d6c63b Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Sat, 9 Jan 2021 08:06:54 -0500 Subject: [PATCH] git-var: add page (#5095) * git-var: add page * Update pages/common/git-var.md Co-authored-by: Starbeamrainbowlabs * Update pages/common/git-var.md Co-authored-by: Axel Navarro * Update git-var.md Co-authored-by: Starbeamrainbowlabs Co-authored-by: Axel Navarro --- pages/common/git-var.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pages/common/git-var.md diff --git a/pages/common/git-var.md b/pages/common/git-var.md new file mode 100644 index 0000000000..1b23417715 --- /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`