From: Oleg Broytman Date: Wed, 19 Aug 2015 15:56:26 +0000 (+0300) Subject: git diff HEAD between the tree and the HEAD X-Git-Url: https://git.phdru.name/?p=git-wiki.git;a=commitdiff_plain;h=af24d7c3f871f5f8e21e1a7ba2750f212f201489 git diff HEAD between the tree and the HEAD --- 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