Detect if remote repository have new changes.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 14 Feb 2017 12:38:27 +0200
changeset 2085 652aca73fc06
parent 2084 376824d203c2
child 2086 c07317dca036
Detect if remote repository have new changes.
git.rst
--- a/git.rst	Mon Feb 13 22:46:07 2017 +0200
+++ b/git.rst	Tue Feb 14 12:38:27 2017 +0200
@@ -179,22 +179,28 @@
    Edit ``fetch`` value to change defaults.
 
 
-
-git analog of 'hg incoming'.
-============================
+git analog of 'hg incoming'
+===========================
 
 git does not directly support such feature. You can emulate it by::
 
   $ git fetch
   $ git log master..origin/master   # or just '..origin/master'
 
-By previous commands you grab changes from remote server! You can apply them::
+By previous commands you grab changes from remote server! You can apply them by
+``pull`` or ``merge`` or ``rebase`` command::
 
-  TODO
+  $ git pull
   $ git merge
+  TODO
 
-git analog of 'hg outgoing'.
-============================
+To detect if remote repository have new changes::
+
+  $ git ls-remote
+  $ git ls-remote $upstream
+
+git analog of 'hg outgoing'
+===========================
 
 git does not directly support such feature. You can emulate it by::