From af24d7c3f871f5f8e21e1a7ba2750f212f201489 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 19 Aug 2015 18:56:26 +0300 Subject: [PATCH] git diff HEAD between the tree and the HEAD --- pep-git.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pep-git.txt b/pep-git.txt index 28f8cc1..aa86ef8 100644 --- a/pep-git.txt +++ b/pep-git.txt @@ -660,7 +660,8 @@ To add hunks of patches to the index use ``git add --patch`` (or just To see the diff between the index and the last commit (i.e., collected patches) use ``git diff --cached``. To see the diff between the working tree and the index (i.e., uncollected patches) use just ``git -diff``. +diff``. To see the diff between the working tree and the last commit +(i.e., both collected and uncollected patches) use ``git diff HEAD``. See `WhatIsTheIndex `_ and -- 2.39.2