X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-push.txt;h=7b27dc60bd5a2e58475d39d0c32cdbd6878aa5bd;hb=745bc77604f56d9253958fbcab81c4a8cd3bf170;hp=8bfa7cb7e5dbd878ad244db4fabf1e899cb61a2a;hpb=98347fee9bbff2676dff39895f9419b129d92e43;p=git.git diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt index 8bfa7cb7e..7b27dc60b 100644 --- a/Documentation/git-push.txt +++ b/Documentation/git-push.txt @@ -44,22 +44,21 @@ tip of `master` branch); see linkgit:git-rev-parse[1]) that you want to push. The side represents the destination location. + The local ref that matches is used -to fast forward the remote ref that matches (or, if no was -specified, the same ref that referred to locally). If +to fast forward the remote ref that matches . If the optional leading plus `+` is used, the remote ref is updated even if it does not result in a fast forward update. + `tag ` means the same as `refs/tags/:refs/tags/`. + -A parameter without a colon pushes the from the source -repository to the destination repository under the same name. +A lonely parameter (without a colon and a destination) pushes +the to the same name in the destination repository. + Pushing an empty allows you to delete the ref from the remote repository. + The special refspec `:` (or `+:` to allow non-fast forward updates) -directs git to push "matching" heads: for every head that exists on -the local side, the remote side is updated if a head of the same name +directs git to push "matching" branches: for every branch that exists on +the local side, the remote side is updated if a branch of the same name already exists on the remote side. This is the default operation mode if no explicit refspec is found (that is neither on the command line nor in any Push line of the corresponding remotes file---see below).