From: Allen Johnson <akjohnson78@gmail.com>
To: Roald de Vries <rdv@roalddevries.nl>
Cc: git@vger.kernel.org
Subject: Re: cloning to remote
Date: Fri, 24 Jul 2009 09:58:27 -0400 [thread overview]
Message-ID: <6786ed4f0907240658s5c22cb6bs32d59e95e1bb3468@mail.gmail.com> (raw)
In-Reply-To: <EF165A6E-7E91-4EB6-B078-48BEB5F61448@roalddevries.nl>
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
>
prev parent reply other threads:[~2009-07-24 13:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-24 10:10 cloning to remote Roald de Vries
2009-07-24 13:58 ` Allen Johnson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6786ed4f0907240658s5c22cb6bs32d59e95e1bb3468@mail.gmail.com \
--to=akjohnson78@gmail.com \
--cc=git@vger.kernel.org \
--cc=rdv@roalddevries.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).