From 32f2a4af3589f4d0844392add0dd23212c28c246 Mon Sep 17 00:00:00 2001 From: Ranhiru Cooray Date: Sun, 12 Jun 2016 22:41:16 +0800 Subject: [PATCH] Added --staged as an alternative --- README.md | 2 +- tips.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f09d3a0..3305e9a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tips.json b/tips.json index 0c06687..d0ceb86 100644 --- a/tips.json +++ b/tips.json @@ -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"