git.rst
changeset 2085 652aca73fc06
parent 2084 376824d203c2
child 2101 325b195030bd
equal deleted inserted replaced
2084:376824d203c2 2085:652aca73fc06
   177 	 fetch = +refs/heads/*:refs/remotes/origin/*
   177 	 fetch = +refs/heads/*:refs/remotes/origin/*
   178 
   178 
   179    Edit ``fetch`` value to change defaults.
   179    Edit ``fetch`` value to change defaults.
   180 
   180 
   181 
   181 
   182 
   182 git analog of 'hg incoming'
   183 git analog of 'hg incoming'.
   183 ===========================
   184 ============================
       
   185 
   184 
   186 git does not directly support such feature. You can emulate it by::
   185 git does not directly support such feature. You can emulate it by::
   187 
   186 
   188   $ git fetch
   187   $ git fetch
   189   $ git log master..origin/master   # or just '..origin/master'
   188   $ git log master..origin/master   # or just '..origin/master'
   190 
   189 
   191 By previous commands you grab changes from remote server! You can apply them::
   190 By previous commands you grab changes from remote server! You can apply them by
   192 
   191 ``pull`` or ``merge`` or ``rebase`` command::
       
   192 
       
   193   $ git pull
       
   194   $ git merge
   193   TODO
   195   TODO
   194   $ git merge
   196 
   195 
   197 To detect if remote repository have new changes::
   196 git analog of 'hg outgoing'.
   198 
   197 ============================
   199   $ git ls-remote
       
   200   $ git ls-remote $upstream
       
   201 
       
   202 git analog of 'hg outgoing'
       
   203 ===========================
   198 
   204 
   199 git does not directly support such feature. You can emulate it by::
   205 git does not directly support such feature. You can emulate it by::
   200 
   206 
   201   $ git fetch
   207   $ git fetch
   202   $ git log origin/master..master   # or just 'origin/master..'
   208   $ git log origin/master..master   # or just 'origin/master..'