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

Re: push from one remote to another

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Aug 8, 2014, 13:48 UTC
Message-ID
<87k36j853b.fsf@igel.home>
In-Reply-To
<20140808132021.GA23032@aepfle.de>
Olaf Hering <olaf@aepfle.de> writes:
Show 14 quoted lines
> 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
$ git push o remotes/t/master:master
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Olaf Hering
Message 2 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.