git.rst
changeset 2122 24fbab64cf91
parent 2116 f92d8941f4a8
child 2123 f98c2b2e6c07
equal deleted inserted replaced
2121:b6f9485fad08 2122:24fbab64cf91
   196 To detect if remote repository have new changes::
   196 To detect if remote repository have new changes::
   197 
   197 
   198   $ git ls-remote
   198   $ git ls-remote
   199   $ git ls-remote $upstream
   199   $ git ls-remote $upstream
   200 
   200 
   201 git analog of 'hg outgoing'
   201 View unpublished git commits / analog of git 'hg outgoing'
   202 ===========================
   202 ==========================================================
   203 
   203 
   204 git does not directly support such feature. You can emulate it by::
   204 ``git`` does not directly support such feature. Recently ``hg`` start tracking
   205 
   205 changes that pushed to any other repositories (called as ``public`` versus
   206   $ git fetch
   206 ``draft`` which is not yet published anywhere). You can emulate it by::
   207   $ git log origin/master..master   # or just 'origin/master..'
   207 
       
   208   $ git fetch origin
       
   209   $ git log origin/master..master
       
   210   $ git log origin/master..
       
   211   $ git log origin/master..HEAD
       
   212   $ git log @{u}..
       
   213 
       
   214   $ git diff origin/master..
       
   215 
       
   216 Verbose syntax::
       
   217 
       
   218   $ git log --branches --not --remotes
   208 
   219 
   209 git analog of 'hg glog'
   220 git analog of 'hg glog'
   210 =======================
   221 =======================
   211 ::
   222 ::
   212 
   223