{"thread":{"id":"20216","subject":"cloning to remote","startedAt":"2009-07-24T10:10:01Z","lastAt":"2009-07-24T13:58:27Z","messageCount":2,"participants":["Roald de Vries","Allen Johnson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"118624","messageId":"EF165A6E-7E91-4EB6-B078-48BEB5F61448@roalddevries.nl","threadId":"20216","inReplyTo":null,"subject":"cloning to remote","fromName":"Roald de Vries","fromEmail":"rdv@roalddevries.nl","sentAt":"2009-07-24T10:10:01Z","receivedAt":"2009-07-24T10:10:01Z","isPatch":false,"sender":{"key":"rdv@roalddevries.nl","avatar":null},"body":"Hi all,\n\nIk normally init my repositories on my laptop, and later would like to  \nclone them to my server. This seems to require that I login to my  \nserver and clone from my laptop, which again requires me to run an  \nsshd on my laptop, and - because it's always behind a router - to 'ssh  \n-R' (remote port forwarding) to access it.\n\nDid I miss something, and can I do something like 'git clone localdir ssh://server/path'? \n  Or otherwise, wouldn't that be something to add?\n\nKind regards, Roald\n"},{"id":"118627","messageId":"6786ed4f0907240658s5c22cb6bs32d59e95e1bb3468@mail.gmail.com","threadId":"20216","inReplyTo":"EF165A6E-7E91-4EB6-B078-48BEB5F61448@roalddevries.nl","subject":"Re: cloning to remote","fromName":"Allen Johnson","fromEmail":"akjohnson78@gmail.com","sentAt":"2009-07-24T13:58:27Z","receivedAt":"2009-07-24T13:58:27Z","isPatch":false,"sender":{"key":"akjohnson78@gmail.com","avatar":null},"body":"I'm not sure about cloning to a remote url but you could do the clone\nlocally then secure copy it to your server.\n\n$ git clone --bare project1 project1.git\n$ scp -r project1.git username@server:/path/to/repo\n\nThen, optionally, update your local project1/.git/config and setup\ndefault rules for pushing to the server repo.\n\nAllen\n\nOn Fri, Jul 24, 2009 at 6:10 AM, Roald de Vries<rdv@roalddevries.nl> wrote:\n> Hi all,\n>\n> Ik normally init my repositories on my laptop, and later would like to clone\n> them to my server. This seems to require that I login to my server and clone\n> from my laptop, which again requires me to run an sshd on my laptop, and -\n> because it's always behind a router - to 'ssh -R' (remote port forwarding)\n> to access it.\n>\n> Did I miss something, and can I do something like 'git clone localdir\n> ssh://server/path'? Or otherwise, wouldn't that be something to add?\n>\n> Kind regards, Roald\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"}]}