aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-05-23 16:06:07 -0700
committerJunio C Hamano <gitster@pobox.com>2008-05-23 16:06:07 -0700
commit182fb4df9120257c2e6b041dd58eef3de5b530d2 (patch)
treed24989f220fef3b241a367f22ee0aad7fabe4c0b /Documentation
parente5e9714a106ab668ac982cf73f31919eb4e354fd (diff)
parenta83619d692deeb2565335144078465acb2dd1457 (diff)
downloadgit-182fb4df9120257c2e6b041dd58eef3de5b530d2.tar.gz
git-182fb4df9120257c2e6b041dd58eef3de5b530d2.tar.xz
Merge branch 'pb/push'
* pb/push: add special "matching refs" refspec
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-push.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
index f06d94e31..0cc44d799 100644
--- a/Documentation/git-push.txt
+++ b/Documentation/git-push.txt
@@ -46,12 +46,6 @@ specified, the same ref that <src> referred to locally). If
the optional leading plus `+` is used, the remote ref is updated
even if it does not result in a fast forward update.
+
-Note: 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), then "matching" heads are
-pushed: for every head that exists on the local side, the remote side is
-updated if a head of the same name already exists on the remote side.
-+
`tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`.
+
A parameter <ref> without a colon pushes the <ref> from the source
@@ -59,6 +53,13 @@ repository to the destination repository under the same name.
+
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
+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).
\--all::
Instead of naming each ref to push, specifies that all