Added --staged as an alternative

This commit is contained in:
Ranhiru Cooray 2016-06-12 22:41:16 +08:00
parent c147aa64e2
commit 32f2a4af35
2 changed files with 3 additions and 2 deletions

View File

@ -158,7 +158,7 @@ git diff
## Changes staged for commit
```sh
git diff --cached or git diff --staged
git diff --cached
```
## Show both staged and unstaged changes

View File

@ -24,7 +24,8 @@
"tip": "git diff"
}, {
"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",
"tip": "git diff HEAD"