* cloning to remote
@ 2009-07-24 10:10 Roald de Vries
2009-07-24 13:58 ` Allen Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Roald de Vries @ 2009-07-24 10:10 UTC (permalink / raw)
To: git
Hi all,
Ik normally init my repositories on my laptop, and later would like to
clone them to my server. This seems to require that I login to my
server and clone from my laptop, which again requires me to run an
sshd on my laptop, and - because it's always behind a router - to 'ssh
-R' (remote port forwarding) to access it.
Did I miss something, and can I do something like 'git clone localdir ssh://server/path'?
Or otherwise, wouldn't that be something to add?
Kind regards, Roald
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cloning to remote
2009-07-24 10:10 cloning to remote Roald de Vries
@ 2009-07-24 13:58 ` Allen Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Allen Johnson @ 2009-07-24 13:58 UTC (permalink / raw)
To: Roald de Vries; +Cc: git
I'm not sure about cloning to a remote url but you could do the clone
locally then secure copy it to your server.
$ git clone --bare project1 project1.git
$ scp -r project1.git username@server:/path/to/repo
Then, optionally, update your local project1/.git/config and setup
default rules for pushing to the server repo.
Allen
On Fri, Jul 24, 2009 at 6:10 AM, Roald de Vries<rdv@roalddevries.nl> wrote:
> Hi all,
>
> Ik normally init my repositories on my laptop, and later would like to clone
> them to my server. This seems to require that I login to my server and clone
> from my laptop, which again requires me to run an sshd on my laptop, and -
> because it's always behind a router - to 'ssh -R' (remote port forwarding)
> to access it.
>
> Did I miss something, and can I do something like 'git clone localdir
> ssh://server/path'? Or otherwise, wouldn't that be something to add?
>
> Kind regards, Roald
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-24 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 10:10 cloning to remote Roald de Vries
2009-07-24 13:58 ` Allen Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).