Skip to content

Commit 16b9349

Browse files
committed
show a Git logical variable.
1 parent d607a80 commit 16b9349

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
148148
* [Add everything, but whitespace changes](#add-everything-but-whitespace-changes)
149149
* [Edit [local/global] git config](#edit-localglobal-git-config)
150150
* [blame on certain range](#blame-on-certain-range)
151+
* [Show a Git logical variable.](#show-a-git-logical-variable)
151152

152153
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
153154
<!-- @doxie.inject end toc -->
@@ -336,7 +337,7 @@ git add -p
336337

337338
## Get git bash completion
338339
```sh
339-
curl -L http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc
340+
curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc
340341
```
341342

342343
## What changed since two weeks?
@@ -1014,5 +1015,10 @@ git config [--global] --edit
10141015
git blame -L <start>,<end>
10151016
```
10161017

1018+
## Show a Git logical variable.
1019+
```sh
1020+
git var -l | <variable>
1021+
```
1022+
10171023
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
10181024
<!-- @doxie.inject end -->

tips.json

+3
Original file line numberDiff line numberDiff line change
@@ -434,4 +434,7 @@
434434
}, {
435435
"title": "blame on certain range",
436436
"tip": "git blame -L <start>,<end>"
437+
}, {
438+
"title": "Show a Git logical variable.",
439+
"tip":"git var -l | <variable>"
437440
}]

0 commit comments

Comments
 (0)