View git commits.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 23 Apr 2017 14:05:35 +0300
changeset 2126 09e2e50d02aa
parent 2125 754abf10c819
child 2127 782577d2e7f0
View git commits.
git.rst
--- a/git.rst	Sat Apr 15 09:41:57 2017 +0300
+++ b/git.rst	Sun Apr 23 14:05:35 2017 +0300
@@ -197,6 +197,23 @@
   $ git ls-remote
   $ git ls-remote $upstream
 
+View git commits
+================
+
+Review specific commit with::
+
+  $ git show $REV
+  $ git diff $REV^ $REV
+
+Review difference between commits::
+
+  $ git $REV1 $REV2
+
+Review history with diffs::
+
+  $ git log -p
+  $ git log -p $FROM_REV
+
 View unpublished git commits / analog of git 'hg outgoing'
 ==========================================================