Thread (5 messages) flat view 5 messages, 5 authors, 2016-06-15

Re: Why not clone to a remote directory over SSH

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:13

Carl Baldwin [off-list ref] 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...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help