Mention that 'push .. master' is in explicit form master:refs/heads/master
PATCH 1/1 Mention that 'push .. master' is in explicit form master:refs/heads/master
--- Documentation/git-push.txt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
Documentation/git-push.txt +3 -1
@@ -105,7 +105,9 @@ git push origin master:: Find a ref that matches `master` in the source repository (most likely, it would find `refs/heads/master`), and update the same ref (e.g. `refs/heads/master`) in `origin` repository - with it. + with it. The following would be exactly same command: + + git push origin master:refs/heads/master git push origin :experimental:: Find a ref that matches `experimental` in the `origin` repository
Signature · 5 lines
1.5.3 -- Welcome to FOSS revolution: we fix and modify until it shines
Quoted 10 lines · Jari Aalto
Signed-off-by Jari Aalto <jari.aalto AT cante.net>--- Documentation/git-push.txt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)Documentation/git-push.txt +0
-0
Documentation/git-push.txt git push origin master:: · line 110
Quoted 7 lines
Documentation/git-push.txt +3
-1@@ -105,7 +105,9 @@ git push origin master:: Find a ref that matches `master` in the source repository (most likely, it would find `refs/heads/master`), and update the same ref (e.g. `refs/heads/master`) in `origin` repository - with it. + with it. The following would be exactly same command: + + git push origin master:refs/heads/master
They _might_ be exactly the same.
The reason people often explicitly write
$ git push $URL refs/heads/master:refs/heads/master
in their insns for newbies is because this form would not be affected by the random factors at $URL repository (or your repository) and will consistently get the same result.
$ git push $URL foo
may push branch head 'foo' or tag 'foo' depending on which one you have locally. Having both is not encouraged, but spelling the insn out explicitly as refs/heads/foo makes it clear the command is talking about the branch even when there is a tag with the same name.
* Tue 2007-09-18 Junio C Hamano <gitster AT pobox.com>
* Message-Id: 7vfy1bvgn1.fsf AT gitster.siamese.dyndns.org
Quoted 18 lines
Documentation/git-push.txt git push origin master:: · line 110
Quoted 7 lines
Documentation/git-push.txt +3
-1Find a ref that matches `master` in the source repository (most likely, it would find `refs/heads/master`), and update the same ref (e.g. `refs/heads/master`) in `origin` repository - with it. + with it. The following would be exactly same command: + + git push origin master:refs/heads/masterThey _might_ be exactly the same.
The reason people often explicitly write
$ git push $URL refs/heads/master:refs/heads/masterin their insns for newbies is because this form would not be affected by the random factors at $URL repository (or your repository) and will consistently get the same result.
Quoted 7 lines
$ git push $URL foomay push branch head 'foo' or tag 'foo' depending on which one you have locally. Having both is not encouraged, but spelling the insn out explicitly as refs/heads/foo makes it clear the command is talking about the branch even when there is a tag with the same name.
Thank you, kindly broaden the current documentation to include this explanation.
Jari
Signature · 1 line
Welcome to FOSS revolution: we fix and modify until it shines
Hi,
Quoted 1 line · Jari Aalto
[no meaningful commit message]
Your patch is wrong. Try "git push origin <some-tag>". Works like a charm, without starting a new branch.
Ciao,
Dscho