git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How do I push all remote branches to a new/different remote?

From
Howard Miller <howard@e-learndesign.co.uk>
Date
May 11, 2011, 09:55 UTC
Message-ID
<BANLkTi=EtRPcjaeCRNgLQ39JsqzS=_69hA@mail.gmail.com>

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.

Next: Junio C Hamano
Message 1 of 3 in “How do I push all remote branches to a new/different remote?”
  1. Howard MillerMay 11, 2011
  2. Junio C HamanoMay 11, 2011
  3. Howard MillerMay 11, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.