diff options
author | Junio C Hamano <junkio@cox.net> | 2007-02-05 23:01:14 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-06 00:46:56 -0800 |
commit | d46ae3f09a8c7b531e1110d46a2f8cdcfa853b11 (patch) | |
tree | 5f61909319bc50e6707c704857b8a1c85a2f7e01 /cache-tree.h | |
parent | bash: Complete git-remote subcommands. (diff) | |
download | tgif-d46ae3f09a8c7b531e1110d46a2f8cdcfa853b11.tar.xz |
git-push: allow globbing wildcard refspec.
This allows you to set up mothership-satellite configuration
more symmetrically and naturally by allowing the globbing
wildcard refspec for git-push. On your satellite machine:
[remote "mothership"]
url = mothership:project.git
fetch = refs/heads/*:refs/remotes/mothership/*
push = refs/heads/*:refs/remotes/satellite/*
You would say "git fetch mothership" to update your tracking
branches under mothership/ to keep track of the progress on the
mothership side, and when you are done working on the satellite
machine, you would "git push mothership" to update their
tracking branches under satellite/. Corresponding configuration
on the mothership machine can be used to make "git fetch satellite"
update its tracking branch under satellite/. on the mothership.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache-tree.h')
0 files changed, 0 insertions, 0 deletions