]> git.phdru.name Git - git-wiki.git/commitdiff
git diff HEAD between the tree and the HEAD
authorOleg Broytman <phd@phdru.name>
Wed, 19 Aug 2015 15:56:26 +0000 (18:56 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 19 Aug 2015 15:56:26 +0000 (18:56 +0300)
pep-git.txt

index 28f8cc1ef5d60df4f4a57a7a1e0dc6e50fdae0f9..aa86ef8f8fa0bd59e0394eb8286e7e33a8f8b2de 100644 (file)
@@ -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
 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
 <https://git.wiki.kernel.org/index.php/WhatIsTheIndex>`_ and
 
 See `WhatIsTheIndex
 <https://git.wiki.kernel.org/index.php/WhatIsTheIndex>`_ and