From: Junio C Hamano Date: Fri, 30 Sep 2005 08:24:29 GMT Subject: Re: Edit log message after commit Message-ID: <7vfyrn6k02.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <87br2bq2ot.wl@mail2.atmark-techno.com> Yasushi SHOJI writes: > first, create new branch at where you wanna change the message > > git checkout -b temp HEAD^^^ # hmm... HEAD^3 doesn't work Because it should be spelled HEAD~3. HEAD^3 is "the third parent of HEAD" and usually does not exist, unless you are talking about an Octopus merge of three or more branches.