--- a/git.rst Mon Oct 09 10:51:39 2017 +0300
+++ b/git.rst Mon Oct 09 11:39:10 2017 +0300
@@ -146,12 +146,22 @@
List all remote branches (from all remotes)::
$ git ls-remote
+ $ git ls-remote origin
+
+List registered remotes::
+
+ $ git remote show
List remote branches from ``$REMOTE`` remote::
$ git ls-remote --heads $REMOTE
$ git remote show $REMOTE
+Special case of above is ``origin`` remote, which is default remote::
+
+ $ git remote show origin
+ $ git ls-remote --heads origin
+
.. note::
Look to ``[remote "..."]`` in ``~/.git/config`` to find out names of possible
@@ -159,7 +169,8 @@
$ git remote show
-Getting branches pointers from default (``origin``) remote::
+Getting branches pointers from default (``origin``) remote (without merging
+tracking branch)::
$ git fetch
@@ -167,6 +178,20 @@
$ git fetch $REMOTE
+To get updated with default remote changes::
+
+ $ git pull
+
+or specify concrete remote::
+
+ $ git pull $REMOTE
+ $ git pull origin
+
+To locally remove pointers to deleted remotely branches::
+
+ $ git remote update --prune
+ $ git remote update --prune origin
+
.. note::
Only curtain branches fetched by default::