show a Git logical variable.

This commit is contained in:
Hemanth.HM 2016-12-12 20:16:32 +05:30
parent d607a80b4d
commit 16b9349d48
2 changed files with 10 additions and 1 deletions

View File

@ -148,6 +148,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Add everything, but whitespace changes](#add-everything-but-whitespace-changes)
* [Edit [local/global] git config](#edit-localglobal-git-config)
* [blame on certain range](#blame-on-certain-range)
* [Show a Git logical variable.](#show-a-git-logical-variable)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -336,7 +337,7 @@ git add -p
## Get git bash completion
```sh
curl -L http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc
curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc
```
## What changed since two weeks?
@ -1014,5 +1015,10 @@ git config [--global] --edit
git blame -L <start>,<end>
```
## Show a Git logical variable.
```sh
git var -l | <variable>
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -434,4 +434,7 @@
}, {
"title": "blame on certain range",
"tip": "git blame -L <start>,<end>"
}, {
"title": "Show a Git logical variable.",
"tip":"git var -l | <variable>"
}]