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

Re: cloning to remote

From
AJAllen Johnson <akjohnson78@gmail.com>
Date
Jul 24, 2009, 13:58 UTC
Message-ID
<6786ed4f0907240658s5c22cb6bs32d59e95e1bb3468@mail.gmail.com>
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:
Show 17 quoted lines
> 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
>
Previous: Roald de Vries
Message 2 of 2 in “cloning to remote”
  1. Roald de VriesJul 24, 2009
  2. Allen JohnsonJul 24, 2009

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.