{"thread":{"id":"27325","subject":"How do I push all remote branches to a new/different remote?","startedAt":"2011-05-11T09:55:15Z","lastAt":"2011-05-11T18:33:10Z","messageCount":3,"participants":["Howard Miller","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"167676","messageId":"BANLkTi=EtRPcjaeCRNgLQ39JsqzS=_69hA@mail.gmail.com","threadId":"27325","inReplyTo":null,"subject":"How do I push all remote branches to a new/different remote?","fromName":"Howard Miller","fromEmail":"howard@e-learndesign.co.uk","sentAt":"2011-05-11T09:55:15Z","receivedAt":"2011-05-11T09:55:15Z","isPatch":false,"sender":{"key":"howard@e-learndesign.co.uk","avatar":"https://gravatar.com/avatar/ddb66c6a4a077e52b823ac5b04f33ab927cb90e2ab1eafedaeba07b1920bb99e?d=mp&s=160"},"body":"I simply want to move an existing repository 'as is' from one place to\nanother (the another being github fwiw). I would like to keep all the\nbranch information intact.\n\nThat is,\n\ngit clone ...existing remote repo...\ncd ..\ngit remote add ...new remote repo..\ngit push ...you tell me..\n\nSo, there are *no* local branches to bother about, but I have hundreds\nof remote ones. I can't spot a way to do this.\n"},{"id":"167681","messageId":"7vy62df77q.fsf@alter.siamese.dyndns.org","threadId":"27325","inReplyTo":"BANLkTi=EtRPcjaeCRNgLQ39JsqzS=_69hA@mail.gmail.com","subject":"Re: How do I push all remote branches to a new/different remote?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-05-11T18:00:25Z","receivedAt":"2011-05-11T18:00:25Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Howard Miller <howard@e-learndesign.co.uk> writes:\n\n> git push ...you tell me..\n\nYou can say \"please\" here ;-)  Shouldn't this work?\n\n\tgit push $that_url 'refs/*:refs/*'\n"},{"id":"167682","messageId":"BANLkTi=JBMf8t=PQo13pVYd03wczsyjMtA@mail.gmail.com","threadId":"27325","inReplyTo":"7vy62df77q.fsf@alter.siamese.dyndns.org","subject":"Re: How do I push all remote branches to a new/different remote?","fromName":"Howard Miller","fromEmail":"howard@e-learndesign.co.uk","sentAt":"2011-05-11T18:33:10Z","receivedAt":"2011-05-11T18:33:10Z","isPatch":false,"sender":{"key":"howard@e-learndesign.co.uk","avatar":"https://gravatar.com/avatar/ddb66c6a4a077e52b823ac5b04f33ab927cb90e2ab1eafedaeba07b1920bb99e?d=mp&s=160"},"body":"On 11 May 2011 19:00, Junio C Hamano <gitster@pobox.com> wrote:\n> Howard Miller <howard@e-learndesign.co.uk> writes:\n>\n>> git push ...you tell me..\n>\n> You can say \"please\" here ;-)  Shouldn't this work?\n>\n>        git push $that_url 'refs/*:refs/*'\n>\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n\n\"please\" very much meant and thank you very much. I was expecting some\noption I had missed but I wouldn't have worked that out.\n\nWhat I don't quite understand is what does --mirror do? I am assuming\nit pushed all the data but none of the branches which, on the face of\nit, doesn't seem very useful.\n"}]}