summaryrefslogtreecommitdiffstats
path: root/git-push.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2009-01-22 03:38:50 +0000
committerJunio C Hamano <junio@hera.kernel.org>2009-01-22 03:38:50 +0000
commitcc0cb3165acf037c2894084b377781b8fbce6c12 (patch)
tree8094c1b3dc974a18238215dc4e15aefeba8df623 /git-push.txt
parentbc4852e8d68ccfc18b8d3c0cf4c3d602917d454a (diff)
downloadgit-htmldocs-cc0cb3165acf037c2894084b377781b8fbce6c12.tar.gz
Autogenerated HTML docs for v1.6.1-265-g9a013
Diffstat (limited to 'git-push.txt')
-rw-r--r--git-push.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/git-push.txt b/git-push.txt
index 3321966c6..7b27dc60b 100644
--- a/git-push.txt
+++ b/git-push.txt
@@ -28,7 +28,9 @@ OPTIONS
-------
<repository>::
The "remote" repository that is destination of a push
- operation. See the section <<URLS,GIT URLS>> below.
+ operation. This parameter can be either a URL
+ (see the section <<URLS,GIT URLS>> below) or the name
+ of a remote (see the section <<REMOTES,REMOTES>> below).
<refspec>...::
The canonical format of a <refspec> parameter is
@@ -42,22 +44,21 @@ tip of `master` branch); see linkgit:git-rev-parse[1]) that you
want to push. The <dst> side represents the destination location.
+
The local ref that matches <src> is used
-to fast forward the remote ref that matches <dst> (or, if no <dst> was
-specified, the same ref that <src> referred to locally). If
+to fast forward the remote ref that matches <dst>. If
the optional leading plus `+` is used, the remote ref is updated
even if it does not result in a fast forward update.
+
`tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`.
+
-A parameter <ref> without a colon pushes the <ref> from the source
-repository to the destination repository under the same name.
+A lonely <src> parameter (without a colon and a destination) pushes
+the <src> to the same name in the destination repository.
+
Pushing an empty <src> allows you to delete the <dst> 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).