mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 21:26:01 +02:00
git-var: add page (#5095)
* git-var: add page * Update pages/common/git-var.md Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com> * Update pages/common/git-var.md Co-authored-by: Axel Navarro <navarroaxel@gmail.com> * Update git-var.md Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com> Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
This commit is contained in:
parent
feb804162b
commit
2ee3968c44
1 changed files with 13 additions and 0 deletions
13
pages/common/git-var.md
Normal file
13
pages/common/git-var.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# git var
|
||||||
|
|
||||||
|
> Prints a Git logical variable's value.
|
||||||
|
> See `git config`, which is preferred over `git var`.
|
||||||
|
> More information: <https://git-scm.com/docs/git-var>.
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue