* How do I push all remote branches to a new/different remote? @ 2011-05-11 9:55 Howard Miller 2011-05-11 18:00 ` Junio C Hamano 0 siblings, 1 reply; 3+ messages in thread From: Howard Miller @ 2011-05-11 9:55 UTC (permalink / raw) To: git I simply want to move an existing repository 'as is' from one place to another (the another being github fwiw). I would like to keep all the branch information intact. That is, git clone ...existing remote repo... cd .. git remote add ...new remote repo.. git push ...you tell me.. So, there are *no* local branches to bother about, but I have hundreds of remote ones. I can't spot a way to do this. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do I push all remote branches to a new/different remote? 2011-05-11 9:55 How do I push all remote branches to a new/different remote? Howard Miller @ 2011-05-11 18:00 ` Junio C Hamano 2011-05-11 18:33 ` Howard Miller 0 siblings, 1 reply; 3+ messages in thread From: Junio C Hamano @ 2011-05-11 18:00 UTC (permalink / raw) To: Howard Miller; +Cc: git Howard Miller <howard@e-learndesign.co.uk> writes: > git push ...you tell me.. You can say "please" here ;-) Shouldn't this work? git push $that_url 'refs/*:refs/*' ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do I push all remote branches to a new/different remote? 2011-05-11 18:00 ` Junio C Hamano @ 2011-05-11 18:33 ` Howard Miller 0 siblings, 0 replies; 3+ messages in thread From: Howard Miller @ 2011-05-11 18:33 UTC (permalink / raw) To: Junio C Hamano; +Cc: git On 11 May 2011 19:00, Junio C Hamano <gitster@pobox.com> wrote: > Howard Miller <howard@e-learndesign.co.uk> writes: > >> git push ...you tell me.. > > You can say "please" here ;-) Shouldn't this work? > > git push $that_url 'refs/*:refs/*' > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > "please" very much meant and thank you very much. I was expecting some option I had missed but I wouldn't have worked that out. What I don't quite understand is what does --mirror do? I am assuming it pushed all the data but none of the branches which, on the face of it, doesn't seem very useful. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-11 18:33 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-05-11 9:55 How do I push all remote branches to a new/different remote? Howard Miller 2011-05-11 18:00 ` Junio C Hamano 2011-05-11 18:33 ` Howard Miller
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).