Re: Newbie experience with push over ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthieu Moy <Matthieu.Moy@xxxxxxx> 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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]