From: Nicolas Pitre Date: Sat, 30 Jan 2010 00:39:41 GMT Subject: Re: master^ is not a local branch -- huh?!? Message-ID: In-Reply-To: <7viqakcu56.fsf@alter.siamese.dyndns.org> On Fri, 29 Jan 2010, Junio C Hamano wrote: > How about this? > > -- >8 -- not a patch -- >8 -- > Note: 'master^0' isn't a local branch head; > > You are in 'detached HEAD' state. You can look around, make experimental > changes and commit them, and you can discard any commits you make in this > state without impacting any branches by checking out another branch. s/checking out another branch/performing another checkout/ > If you want to create a new branch to retain commits you create, you may > do so (now or later) by using -b with the checkout command again. Example: > > git checkout -b > > HEAD is now at a9d7c95... Merge branch 'maint' > -- 8< -- not a patch -- 8< -- > > Again, everything except for the last line would disappear by setting the > advice.detachedHEAD configuration to false. Looks fine to me. Nicolas