mirror of
https://github.com/namibia/tips.git
synced 2024-06-02 10:21:09 +00:00
Added alternative as an array
This commit is contained in:
parent
32f2a4af35
commit
1ff31a939f
|
@ -161,6 +161,12 @@ git diff
|
||||||
git diff --cached
|
git diff --cached
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
__Alternatives:__
|
||||||
|
```sh
|
||||||
|
git diff --staged
|
||||||
|
```
|
||||||
|
|
||||||
## Show both staged and unstaged changes
|
## Show both staged and unstaged changes
|
||||||
```sh
|
```sh
|
||||||
git diff HEAD
|
git diff HEAD
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
}, {
|
}, {
|
||||||
"title": "Changes staged for commit",
|
"title": "Changes staged for commit",
|
||||||
"tip": "git diff --cached",
|
"tip": "git diff --cached",
|
||||||
"alternatives": "git diff --staged"
|
"alternatives": ["git diff --staged"]
|
||||||
}, {
|
}, {
|
||||||
"title": "Show both staged and unstaged changes",
|
"title": "Show both staged and unstaged changes",
|
||||||
"tip": "git diff HEAD"
|
"tip": "git diff HEAD"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user