From: Junio C Hamano Date: Wed, 25 Mar 2009 18:40:57 GMT Subject: Re: reverting initial commit Message-ID: <7vbprp30p2.fsf@gitster.siamese.dyndns.org> In-Reply-To: <49CA799A.6020807@obry.net> Pascal Obry writes: > Junio C Hamano a écrit : >> That's not even an revert. > > Right. > >> Can't you simply amend it away? >> >> $ git rm not-this-file >> $ git commit --amend > > Right, I've done that. But the fact that un-committing the initial > commit was not possible seemed strange to me. At least the error message > should be clearer, don't you think? "You said HEAD^ but there is no such thing? What are you talking about?" That sounds clear enough to me, but if you have a patch to improve it, please send it in.