aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-send-pack.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-03 16:35:29 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-03 17:16:29 -0700
commitf88395ac233572b19f67b3a47b9fe024f397a85b (patch)
tree1685bf95ed8737694561061be4956cc941ea266f /Documentation/git-send-pack.txt
parent8d5afef0f9b3a252f7b90406d35c295dc698e26d (diff)
downloadgit-f88395ac233572b19f67b3a47b9fe024f397a85b.tar.gz
git-f88395ac233572b19f67b3a47b9fe024f397a85b.tar.xz
Renaming push.
This allows git-send-pack to push local refs to a destination repository under different names. Here is the name mapping rules for refs. * If there is no ref mapping on the command line: - if '--all' is specified, it is equivalent to specifying <local> ":" <local> for all the existing local refs on the command line - otherwise, it is equivalent to specifying <ref> ":" <ref> for all the refs that exist on both sides. * <name> is just a shorthand for <name> ":" <name> * <src> ":" <dst> push ref that matches <src> to ref that matches <dst>. - It is an error if <src> does not match exactly one of local refs. - It is an error if <dst> matches more than one remote refs. - If <dst> does not match any remote refs, either - it has to start with "refs/"; <dst> is used as the destination literally in this case. - <src> == <dst> and the ref that matched the <src> must not exist in the set of remote refs; the ref matched <src> locally is used as the name of the destination. For example, - "git-send-pack --all <remote>" works exactly as before; - "git-send-pack <remote> master:upstream" pushes local master to remote ref that matches "upstream". If there is no such ref, it is an error. - "git-send-pack <remote> master:refs/heads/upstream" pushes local master to remote refs/heads/upstream, even when refs/heads/upstream does not exist. - "git-send-pack <remote> master" into an empty remote repository pushes the local ref/heads/master to the remote ref/heads/master. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-send-pack.txt')
0 files changed, 0 insertions, 0 deletions