View unpublished git commits.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 06 Apr 2017 17:38:04 +0300
changeset 2122 24fbab64cf91
parent 2121 b6f9485fad08
child 2123 f98c2b2e6c07
View unpublished git commits.
git.rst
--- a/git.rst	Wed Feb 01 01:40:36 2017 +0200
+++ b/git.rst	Thu Apr 06 17:38:04 2017 +0300
@@ -198,13 +198,24 @@
   $ git ls-remote
   $ git ls-remote $upstream
 
-git analog of 'hg outgoing'
-===========================
+View unpublished git commits / analog of git 'hg outgoing'
+==========================================================
+
+``git`` does not directly support such feature. Recently ``hg`` start tracking
+changes that pushed to any other repositories (called as ``public`` versus
+``draft`` which is not yet published anywhere). You can emulate it by::
 
-git does not directly support such feature. You can emulate it by::
+  $ git fetch origin
+  $ git log origin/master..master
+  $ git log origin/master..
+  $ git log origin/master..HEAD
+  $ git log @{u}..
 
-  $ git fetch
-  $ git log origin/master..master   # or just 'origin/master..'
+  $ git diff origin/master..
+
+Verbose syntax::
+
+  $ git log --branches --not --remotes
 
 git analog of 'hg glog'
 =======================