Re: git branch --switch?
- From
- Rene Herman <rene.herman@gmail.com>
- Date
- Apr 17, 2007, 16:55 UTC
- Message-ID
- <4624FBEB.5080805@gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0704170938510.5473@woody.linux-foundation.org>
On 04/17/2007 06:44 PM, Linus Torvalds wrote:
Show 12 quoted lines
> 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.