{"thread":{"id":"37314","subject":"push from one remote to another","startedAt":"2014-08-08T13:20:22Z","lastAt":"2014-08-08T13:48:40Z","messageCount":2,"participants":["Olaf Hering","Andreas Schwab"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"247475","messageId":"20140808132021.GA23032@aepfle.de","threadId":"37314","inReplyTo":null,"subject":"push from one remote to another","fromName":"Olaf Hering","fromEmail":"olaf@aepfle.de","sentAt":"2014-08-08T13:20:22Z","receivedAt":"2014-08-08T13:20:22Z","isPatch":false,"sender":{"key":"olaf@aepfle.de","avatar":"https://avatars.githubusercontent.com/u/942324?v=4"},"body":"What is the correct syntax/setup to push from one remote to another?\nI did something like this, to feed a github repo:\n\n # rm -rf $$\n # mkdir $$\n # cd $$\n # git --init\n # git remote add --tags t git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git\n # git remote add --tags o git@github.com:user/repo.git\n # git fetch --all\n\nThis syntax does not work for me:\n # git push t master o master\n # git push --tags t master o master\n\nIs there a way to kind of mirror without doing a checkout, to save\ndiskspace?\n\nOlaf\n"},{"id":"247476","messageId":"87k36j853b.fsf@igel.home","threadId":"37314","inReplyTo":"20140808132021.GA23032@aepfle.de","subject":"Re: push from one remote to another","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2014-08-08T13:48:40Z","receivedAt":"2014-08-08T13:48:40Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"Olaf Hering <olaf@aepfle.de> writes:\n\n> What is the correct syntax/setup to push from one remote to another?\n> I did something like this, to feed a github repo:\n>\n>  # rm -rf $$\n>  # mkdir $$\n>  # cd $$\n>  # git --init\n>  # git remote add --tags t git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git\n>  # git remote add --tags o git@github.com:user/repo.git\n>  # git fetch --all\n>\n> This syntax does not work for me:\n>  # git push t master o master\n>  # git push --tags t master o master\n\n$ git push o remotes/t/master:master\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"}]}