login
Header Space

 
 

Newbie experience with push over ssh

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, February 14, 2007 - 10:07 am

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
-
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 message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Newbie experience with push over ssh, Matthieu Moy, (Wed Feb 14, 10:07 am)
Re: Newbie experience with push over ssh, Matthias Lederhofer, (Wed Feb 14, 10:27 am)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 12:10 pm)
Re: Newbie experience with push over ssh, Matthias Lederhofer, (Wed Feb 14, 1:52 pm)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 2:00 pm)
Re: Newbie experience with push over ssh, Bill Lear, (Wed Feb 14, 12:25 pm)
Re: Newbie experience with push over ssh, Andreas Ericsson, (Thu Feb 15, 11:35 am)
Re: Newbie experience with push over ssh, Matthieu Moy, (Wed Feb 14, 12:47 pm)
Re: Newbie experience with push over ssh, Bill Lear, (Wed Feb 14, 12:34 pm)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 12:48 pm)
Re: Newbie experience with push over ssh, Matthieu Moy, (Wed Feb 14, 12:56 pm)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 1:04 pm)
Re: Newbie experience with push over ssh, Nicolas Pitre, (Wed Feb 14, 1:38 pm)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 1:47 pm)
Re: Newbie experience with push over ssh, Jeff King, (Wed Feb 14, 1:51 pm)
Re: Newbie experience with push over ssh, Nicolas Pitre, (Wed Feb 14, 2:03 pm)
Re: Newbie experience with push over ssh, Bill Lear, (Wed Feb 14, 12:54 pm)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 12:29 pm)
speck-geostationary