From 5599a75b7fb207c211ed9b24ecb03d17827e0bae Mon Sep 17 00:00:00 2001 From: Navneet Singh Date: Sun, 19 Nov 2017 00:26:47 +0530 Subject: [PATCH] added another command to see staged diff (#139) This command is an alternative to view all the changes in the staged files. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 18ce62f..fffb39d 100644 --- a/README.md +++ b/README.md @@ -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.