On Sat, Jul 3, 2010 at 3:38 PM, David <bouncingcats@xxxxxxxxx> 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 <cleanbranch> > / > E---F---G---H---I---J <uglybranch> > > where K and J are identical worktrees. why don't you: git checkout -b cleanbranch E~ git merge --squash J regards, Daniele Segato -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html