# HG changeset patch # User Oleksandr Gavenko # Date 1487068707 -7200 # Node ID 652aca73fc0617b62e73a2b0a89b3c6eeead7259 # Parent 376824d203c23b67f1ea3e1bd95c3c2a953b837e Detect if remote repository have new changes. diff -r 376824d203c2 -r 652aca73fc06 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::