Re: git branch --switch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/17/2007 06:44 PM, Linus Torvalds wrote:

So you could have avoided the checkout completely, and done

	git clone -l -s -n <a local linux repo> local
	git branch v20 v2.6.20
	git branch a v20
	git branch b v20
	git branch c v20

and now you'd have four branches that all point to the v20 thing, and none of them are actually checked out. And all of that would have been instantaneous, even on an old machine (apart fromt he clone itself, of course ;)

Yes, this is exactly what I wanted, thank you. I'm only learning about "git branch" (as opposed to git checkout -b) now and it didn't in fact occur to me that I could specify that <start-point> although I should've noticed in the manpage and certainly in Lars' reply from a few minutes back -- managed to go into that and still not have it click.

Nothing left for me to desire...

Rene.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]