From: Björn Steinbrink Date: Tue, 03 Feb 2009 17:04:57 GMT Subject: Re: git rebase -i onto HEAD~n Message-ID: <20090203170457.GB6859@atjola.homenet> In-Reply-To: On 2009.02.03 16:22:22 -0000, Bisani, Alok wrote: > >And in the editor: > >pick HEAD~2 > >squash HEAD > > # Leave editor for ~/gittest/.git/rebase-merge/git-rebase-todo with > squash 8df4c33 two > # deleted line with discard > squash 91f8267 three Notice the difference? You're trying to squash 8df4cee into nothing. And _if_ that would work, it would still squash 8df4c33 into the previous commit, which is not what you wanted anyway. Björn