From: Daniele Segato Date: Mon, 05 Jul 2010 07:00:40 GMT Subject: Re: *Non*-interactive squash a range ? Message-ID: In-Reply-To: On Sat, Jul 3, 2010 at 3:38 PM, David wrote: > Having successfully used rebase -i to squash, I wonder about some > method to *non*-interactively squash a sequence of intermediate > commits. On a local experimental branch. [...] > My desired result is this: > > ------------------K > / > E---F---G---H---I---J > > where K and J are identical worktrees. why don't you: git checkout -b cleanbranch E~ git merge --squash J regards, Daniele Segato