Re: How to checkout a tag?
- From
Andy Whitcroft <apw@shadowen.org>
- Date
- Oct 5, 2006, 11:18 UTC
- Message-ID
- <4524EA18.3080704@shadowen.org>
- In-Reply-To
- <4524E8C2.3060404@garzik.org>
Jeff Garzik wrote:
Show 19 quoted lines
> Andy Whitcroft wrote: >> Jeff Garzik wrote: >>> Sometimes I receive a kernel patch based off an older version of the >>> kernel, for example a 2.6.18 patch when the current kernel is >>> 2.6.19-rc1. >>> >>> I would like to create a branch starting at 2.6.18, merge the patch, and >>> then merge up to the current kernel. >>> >>> How does one check out a tag, or create a branch based on a tag's >>> starting point? >> >> A tag is a ref like any other: >> >> git checkout -b branchname tag > > Weird. No idea why that didn't work before, for me. > > Thanks for the clue-hammer.
I think I've been in a place where I git fetched a tag and I ended up with the objects, but not with an actual local tag for it. Perhaps that happened to you.
-apw