From: Matthias Lederhofer <matled@gmx.net>
To: Matthieu Moy <Matthieu.Moy@imag.fr>
Cc: git@vger.kernel.org
Subject: Re: Newbie experience with push over ssh
Date: Wed, 14 Feb 2007 15:27:31 +0100 [thread overview]
Message-ID: <20070214142731.GA1478@moooo.ath.cx> (raw)
In-Reply-To: <vpq64a4bzp1.fsf@olympe.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
> I could create a local repository, commit in it, but then, I tried to
> push it to a remote machine, on which git is installed.
>
> I would have expected "push" to do this, but:
>
> $ git push ssh://machine.fr/tmp/foo
> fatal: '/tmp/foo': unable to chdir or not a git archive
> fatal: The remote end hung up unexpectedly
git push is can only push into an existing repository, there seems to
be no repository in /tmp/foo on machine.fr.
> Then, I tried "clone":
>
> $ git clone . ssh://machine.fr/tmp/foo
This means: "clone the repository at . to the directory
ssh://machine.fr/tmp/foo". The first parameter is the repository to
clone from, the second is the directory to put the clone into (this is
optional).
I don't think there is any way to 'clone to remote'. You'd have to
ssh to the other machine and clone from there, or you can just create
an empty repository on the remote host and push the stuff into it.
next prev parent reply other threads:[~2007-02-14 14:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-14 14:07 Newbie experience with push over ssh Matthieu Moy
2007-02-14 14:27 ` Matthias Lederhofer [this message]
2007-02-14 16:10 ` Joseph Wakeling
2007-02-14 16:25 ` Bill Lear
2007-02-14 16:29 ` Joseph Wakeling
2007-02-14 16:34 ` Bill Lear
2007-02-14 16:48 ` Joseph Wakeling
2007-02-14 16:54 ` Bill Lear
2007-02-14 16:56 ` Matthieu Moy
2007-02-14 17:04 ` Joseph Wakeling
2007-02-14 17:38 ` Nicolas Pitre
2007-02-14 17:47 ` Joseph Wakeling
2007-02-14 17:51 ` Jeff King
2007-02-14 18:03 ` Nicolas Pitre
2007-02-14 16:47 ` Matthieu Moy
2007-02-15 15:35 ` Andreas Ericsson
2007-02-14 17:52 ` Matthias Lederhofer
2007-02-14 18:00 ` Joseph Wakeling
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=20070214142731.GA1478@moooo.ath.cx \
--to=matled@gmx.net \
--cc=Matthieu.Moy@imag.fr \
--cc=git@vger.kernel.org \
/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).