git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Carl Baldwin <cnb@fc.hp.com>
Cc: git@vger.kernel.org
Subject: Re: Why not clone to a remote directory over SSH
Date: Wed, 23 Nov 2005 15:26:58 -0800	[thread overview]
Message-ID: <7vd5kr3pz1.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20051123211601.GA2260@hpsvcnb.fc.hp.com> (Carl Baldwin's message of "Wed, 23 Nov 2005 14:16:01 -0700")

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...

  parent reply	other threads:[~2005-11-23 23:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-23 21:16 Why not clone to a remote directory over SSH Carl Baldwin
2005-11-23 23:08 ` Nick Hengeveld
2005-11-23 23:15   ` Andreas Ericsson
2005-11-23 23:28     ` Nick Hengeveld
2005-11-23 23:45       ` Johannes Schindelin
2005-11-24  1:04         ` Nick Hengeveld
2005-11-24 10:36           ` Johannes Schindelin
2005-11-25 20:26             ` Nick Hengeveld
2005-11-23 23:26 ` Junio C Hamano [this message]
2005-11-23 23:41   ` Johannes Schindelin
2005-11-24  0:19     ` Nick Hengeveld
2005-11-24  8:14       ` Andreas Ericsson
2005-11-24  0:51     ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vd5kr3pz1.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=cnb@fc.hp.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).