From: Jeff King Date: Wed, 31 Jan 2007 23:27:48 GMT Subject: Re: [PATCH] tone down the detached head warning Message-ID: <20070131232748.GC31145@coredump.intra.peff.net> In-Reply-To: On Thu, Feb 01, 2007 at 12:25:14AM +0100, Jakub Narebski wrote: > > git-checkout: note use of remote tracking branch when making detached warning > You can checkout a tag, not a remote tracking branch! Huh? $ git-checkout master $ git-checkout origin/pu Note: you are on the remote tracking branch 'origin/pu' If you want to create a new branch from this checkout, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b $ git-checkout master $ git-checkout v1.4.4.4 Note: you are not on ANY branch anymore. If you want to create a new branch from this checkout, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b You _can_ check out a tracking branch (in fact, I believe that is what Carl was proposing for his users to do, but perhaps he had instead actually tagged it). And my patch leaves the traditional output for a tag (since you, are in fact, not on any branch at that point). -Peff