Merge branch 'tf/maint-doc-push'
authorJunio C Hamano <gitster@pobox.com>
Mon, 4 Aug 2014 21:03:45 +0000 (14:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Aug 2014 21:03:45 +0000 (14:03 -0700)
* tf/maint-doc-push:
git-push: fix link in man page

1  2 
Documentation/git-push.txt
index 21cd455508b85f943b45181286adeb2e0066e685,ae1817af7df693e0b11058b6030ad84ce6befedd..c0d7403b9a144292f1bb8e4eb6b83da25086f0ee
@@@ -33,7 -33,7 +33,7 @@@ When the command line does not specify 
  arguments or `--all`, `--mirror`, `--tags` options, the command finds
  the default `<refspec>` by consulting `remote.*.push` configuration,
  and if it is not found, honors `push.default` configuration to decide
- what to push (See gitlink:git-config[1] for the meaning of `push.default`).
+ what to push (See linkgit:git-config[1] for the meaning of `push.default`).
  
  
  OPTIONS[[OPTIONS]]
@@@ -56,13 -56,8 +56,13 @@@ it can be any arbitrary "SHA-1 expressi
  +
  The <dst> tells which ref on the remote side is updated with this
  push. Arbitrary expressions cannot be used here, an actual ref must
 -be named. If `:`<dst> is omitted, the same ref as <src> will be
 -updated.
 +be named.
 +If `git push [<repository>]` without any `<refspec>` argument is set to
 +update some ref at the destination with `<src>` with
 +`remote.<repository>.push` configuration variable, `:<dst>` part can
 +be omitted---such a push will update a ref that `<src>` normally updates
 +without any `<refspec>` on the command line.  Otherwise, missing
 +`:<dst>` means to update the same ref as the `<src>`.
  +
  The object referenced by <src> is used to update the <dst> reference
  on the remote side.  By default this is only allowed if <dst> is not
@@@ -83,8 -78,8 +83,8 @@@ the local side, the remote side is upda
  already exists on the remote side.
  
  --all::
 -      Instead of naming each ref to push, specifies that all
 -      refs under `refs/heads/` be pushed.
 +      Push all branches (i.e. refs under `refs/heads/`); cannot be
 +      used with other <refspec>.
  
  --prune::
        Remove remote branches that don't have a local counterpart. For example
@@@ -385,7 -380,7 +385,7 @@@ will now start building on top of B
  The command by default does not allow an update that is not a fast-forward
  to prevent such loss of history.
  
 -If you do not want to lose your work (history from X to B) nor the work by
 +If you do not want to lose your work (history from X to B) or the work by
  the other person (history from X to A), you would need to first fetch the
  history from the repository, create a history that contains changes done
  by both parties, and push the result back.
@@@ -442,10 -437,8 +442,10 @@@ Example
        configured for the current branch).
  
  `git push origin`::
 -      Without additional configuration, works like
 -      `git push origin :`.
 +      Without additional configuration, pushes the current branch to
 +      the configured upstream (`remote.origin.merge` configuration
 +      variable) if it has the same name as the current branch, and
 +      errors out without pushing otherwise.
  +
  The default behavior of this command when no <refspec> is given can be
  configured by setting the `push` option of the remote, or the `push.default`