From: Junio C Hamano Date: Sat, 06 Jan 2007 01:59:52 GMT Subject: Re: [RFC] git-remote Message-ID: <7vvejkap9j.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <87ac0xgp12.wl%cworth@cworth.org> Carl Worth writes: > On Fri, 5 Jan 2007 20:53:22 +0100, "=?ISO-8859-1?Q?Santi_B=E9jar?=" wrote: >> 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.6 > > Yes. 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 ;-).