diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-23 16:06:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-23 16:06:07 -0700 |
commit | 182fb4df9120257c2e6b041dd58eef3de5b530d2 (patch) | |
tree | d24989f220fef3b241a367f22ee0aad7fabe4c0b /Documentation/git-push.txt | |
parent | e5e9714a106ab668ac982cf73f31919eb4e354fd (diff) | |
parent | a83619d692deeb2565335144078465acb2dd1457 (diff) | |
download | git-182fb4df9120257c2e6b041dd58eef3de5b530d2.tar.gz |
Merge branch 'pb/push'
* pb/push:
add special "matching refs" refspec
Diffstat (limited to 'Documentation/git-push.txt')
-rw-r--r-- | Documentation/git-push.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt index f06d94e318..0cc44d7999 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 |