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::