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

Re: [RFC] git-remote

From: Carl Worth <hidden>
Date: 2016-06-15 22:42:48

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.

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

I haven't played with the new git-remote stuff at all yet, but the
rest of the above does work already, (but for a "warning: no common
commits" message). The only thing missing compared to git-clone is the
remotes configuration. So if the new git-remote can provide behavior
equivalent to what git clone provides, that would be excellent.

If for one have often wanted the ability to easily add a second remote
as if from git-clone.

-Carl

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help