From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Whitcroft Subject: Re: How to checkout a tag? Date: Thu, 05 Oct 2006 12:18:48 +0100 Message-ID: <4524EA18.3080704@shadowen.org> References: <4524E2D5.3030907@garzik.org> <4524E72D.9030101@shadowen.org> <4524E8C2.3060404@garzik.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Git Mailing List X-From: git-owner@vger.kernel.org Thu Oct 05 13:19:36 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GVRG8-000540-OY for gcvg-git@gmane.org; Thu, 05 Oct 2006 13:19:28 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751654AbWJELTV (ORCPT ); Thu, 5 Oct 2006 07:19:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932076AbWJELTV (ORCPT ); Thu, 5 Oct 2006 07:19:21 -0400 Received: from hellhawk.shadowen.org ([80.68.90.175]:10002 "EHLO hellhawk.shadowen.org") by vger.kernel.org with ESMTP id S1751654AbWJELTU (ORCPT ); Thu, 5 Oct 2006 07:19:20 -0400 Received: from localhost ([127.0.0.1]) by hellhawk.shadowen.org with esmtp (Exim 4.50) id 1GVRFZ-0004GJ-9v; Thu, 05 Oct 2006 12:18:49 +0100 User-Agent: Thunderbird 1.5.0.5 (X11/20060812) To: Jeff Garzik In-Reply-To: <4524E8C2.3060404@garzik.org> X-Enigmail-Version: 0.94.0.0 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Jeff Garzik wrote: > 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