# HG changeset patch # User Oleksandr Gavenko # Date 1491489484 -10800 # Node ID 24fbab64cf91beba677d9dad96eaade8b448ac06 # Parent b6f9485fad087b37c38ca8b089d2fd1a01f947fb View unpublished git commits. diff -r b6f9485fad08 -r 24fbab64cf91 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' =======================