From: Linus Torvalds Date: Thu, 24 Nov 2005 00:51:27 GMT Subject: Re: Why not clone to a remote directory over SSH Message-ID: In-Reply-To: On Thu, 24 Nov 2005, Johannes Schindelin wrote: > > On Wed, 23 Nov 2005, Junio C Hamano wrote: > > > $ ssh machine 'git clone '`hostname`:`pwd`' /path/to/new/repository' > > Obviously, this only works if the other side can connect to this side via > ssh. Hmm. Firewalls? Disabled sshd? `hostname` not reliably returning a > valid address for the remote side? Well, you could also just script it and just do ssh machine 'mkdir -p /path/to/new/repository ; cd /path/to/new/repo; git-init-db' git push --all machine:/path/to/new/repository ssh machine 'cd /path/to/new/repo ; git checkout' (and yes, we could obviously make this a "git-create-repo" command, and then you could do git-send-pack --exec=git-create-repo \ machine:/path/to/new/repository $(git-rev-parse --all) or something like that). Linus