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

push from one remote to another

From
Olaf Hering <olaf@aepfle.de>
Date
Aug 8, 2014, 13:20 UTC
Message-ID
<20140808132021.GA23032@aepfle.de>

What is the correct syntax/setup to push from one remote to another? I did something like this, to feed a github repo:

 # rm -rf $$
 # mkdir $$
 # cd $$
 # git --init
 # git remote add --tags t git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
 # git remote add --tags o git@github.com:user/repo.git
 # git fetch --all
This syntax does not work for me:
 # git push t master o master
 # git push --tags t master o master

Is there a way to kind of mirror without doing a checkout, to save diskspace?

Olaf
Next: Andreas Schwab
Message 1 of 2 in “push from one remote to another”
  1. Olaf HeringAug 8, 2014
  2. Andreas SchwabAug 8, 2014

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.