Re: Why not clone to a remote directory over SSH
- From
Junio C Hamano <junkio@cox.net>
- Date
- Nov 23, 2005, 23:26 UTC
- Message-ID
- <7vd5kr3pz1.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20051123211601.GA2260@hpsvcnb.fc.hp.com>
Carl Baldwin <cnb@fc.hp.com> writes:
> It might be cool to enable cloning to a remote over ssh if the remote > doesn't yet exist. > > % git clone . machine:/path/to/new/repository
I wonder if that is:
$ ssh machine 'git clone '`hostname`:`pwd`' /path/to/new/repository'
Obviously you need a working git setup on the other end and probably need to be much more careful shell-quoting if your hostname and pwd has metacharacters, but...