public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@imag•fr>
To: git@vger•kernel.org
Subject: Newbie experience with push over ssh
Date: Wed, 14 Feb 2007 15:07:06 +0100	[thread overview]
Message-ID: <vpq64a4bzp1.fsf@olympe.imag.fr> (raw)

Hi,

I'm playing a bit with git (still ~ total beginner).

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

Then, I tried "clone":

$ git clone . ssh://machine.fr/tmp/foo
Initialized empty Git repository in /tmp/foo/ssh:/machine.fr/tmp/foo/.git/
remote: Generating pack...
remote: Done counting 3 objects.
remote: Deltifying 3 objects.
 100% (3/3) done/3) done
remote: Total 3 (delta 0), reused 0 (delta 0)
Indexing 3 objects.
 100% (3/3) done

Gosh, "push" seems to know what a URL is, but not "clone", which
considers the _file_ ssh:/machine.fr/tmp/foo ...

Then only, I understood that I would have to log onto the remote
machine, and mkdir + git init manually. At least, this should be
mentionned in the git-push man page, but indeed, is there any reason
why git-push could not just create the remote repository? And any
reason why clone doesn't deal with URLs?

Thanks,

-- 
Matthieu

             reply	other threads:[~2007-02-14 14:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14 14:07 Matthieu Moy [this message]
2007-02-14 14:27 ` Newbie experience with push over ssh Matthias Lederhofer
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=vpq64a4bzp1.fsf@olympe.imag.fr \
    --to=matthieu.moy@imag$(echo .)fr \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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