added another command to see staged diff (#139)

This command is an alternative to view all the changes in the staged files.
This commit is contained in:
Navneet Singh 2017-11-19 00:26:47 +05:30 committed by Richard Littauer
parent b7d9be9af9
commit 5599a75b7f
1 changed files with 2 additions and 1 deletions

View File

@ -237,7 +237,8 @@ $ git add --patch filename.x
$ git add -N filename.x
```
Then, you will need to use the `e` option to manually choose which lines to add. Running `git diff --cached` will show you which lines you have staged compared to which are still saved locally.
Then, you will need to use the `e` option to manually choose which lines to add. Running `git diff --cached` or
`git diff --staged` will show you which lines you have staged compared to which are still saved locally.
<a href="stage-in-two-commits"></a>