mirror of https://github.com/namibia/tips.git
Added --staged as an alternative
This commit is contained in:
parent
c147aa64e2
commit
32f2a4af35
|
@ -158,7 +158,7 @@ git diff
|
||||||
|
|
||||||
## Changes staged for commit
|
## Changes staged for commit
|
||||||
```sh
|
```sh
|
||||||
git diff --cached or git diff --staged
|
git diff --cached
|
||||||
```
|
```
|
||||||
|
|
||||||
## Show both staged and unstaged changes
|
## Show both staged and unstaged changes
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
"tip": "git diff"
|
"tip": "git diff"
|
||||||
}, {
|
}, {
|
||||||
"title": "Changes staged for commit",
|
"title": "Changes staged for commit",
|
||||||
"tip": "git diff --cached or git diff --staged"
|
"tip": "git diff --cached",
|
||||||
|
"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