Re: [PATCH] tone down the detached head warning
- From
Jeff King <peff@peff.net>
- Date
- Jan 31, 2007, 23:27 UTC
- Message-ID
- <20070131232748.GC31145@coredump.intra.peff.net>
- In-Reply-To
- <epr8e9$i7r$1@sea.gmane.org>
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 <new_branch_name> $ 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 <new_branch_name>
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