From: Junio C Hamano Date: Tue, 09 Jan 2007 21:20:27 GMT Subject: Re: [PATCH] Detached HEAD (experimental) Message-ID: <7virffkick.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20070109142130.GA10633@coredump.intra.peff.net> Jeff King writes: > For example, with what's in next now, I can do this: > > git checkout v1.4.0 > hack hack hack > git commit -m -a 'some changes which will never be seen again' > git checkout v1.2.0 > > I thought the _point_ of the safety valve was not to lose those changes. Fair enough. We could always do the check upon "git checkout" from a detached HEAD state, whether it takes you back on some existing branch or leaves your HEAD still detached.