Re: [RFC] git-remote
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:48
Carl Worth [off-list ref] writes:
On Fri, 5 Jan 2007 20:53:22 +0100, "=?ISO-8859-1?Q?Santi_B=E9jar?=" wrote:quoted
I was talking about the default name, so you could do: $ git clone\ git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git $ cd linux-2.6 $ git remote add \ git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-2.6.git $ git remote show libata-2.6Yes.
No. Because...
I'd go one further and say that it'd be really nice if git-clone could be seen as equivalent, (and basically equivalent internally), to a simple sequence of steps that could be performed manually. Something like: name=$(basename $url) mkdir $name cd $name git init-db git remote add $url git pull $name
you could say "git remote add $name $url" here, having computed $name already. But you guessed what I was driving at right ;-).