summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a0d911)
raw | patch | inline | side by side (parent: 7a0d911)
author | Anders Melchiorsen <mail@cup.kalibalik.dk> | |
Sun, 25 Jan 2009 23:45:32 +0000 (00:45 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 Jan 2009 06:25:44 +0000 (22:25 -0800) |
Include examples of using HEAD. The order of examples
introduces new concepts one by one. This pushes the
example of deleting a ref to the end of the list.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
introduces new concepts one by one. This pushes the
example of deleting a ref to the end of the list.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-push.txt | patch | blob | history |
index ea45935a7b94afc31970e62ed10fc135c7f269b7..60de47d43957f1d57a3a02b52d89db84683ae66e 100644 (file)
with it. If `master` did not exist remotely, it would be
created.
-git push origin :experimental::
- Find a ref that matches `experimental` in the `origin` repository
- (e.g. `refs/heads/experimental`), and delete it.
+git push origin HEAD::
+ A handy way to push the current branch to the same name on the
+ remote.
git push origin master:satellite/master dev:satellite/dev::
Use the source ref that matches `master` (e.g. `refs/heads/master`)
`refs/remotes/satellite/master`) in the `origin` repository, then
do the same for `dev` and `satellite/dev`.
+git push origin HEAD:master::
+ Push the current branch to the remote ref matching `master` in the
+ `origin` repository. This form is convenient to push the current
+ branch without thinking about its local name.
+
git push origin master:refs/heads/experimental::
Create the branch `experimental` in the `origin` repository
by copying the current `master` branch. This form is only
the local name and the remote name are different; otherwise,
the ref name on its own will work.
+git push origin :experimental::
+ Find a ref that matches `experimental` in the `origin` repository
+ (e.g. `refs/heads/experimental`), and delete it.
+
+
Author
------
Written by Junio C Hamano <gitster@pobox.com>, later rewritten in C