Re: *Non*-interactive squash a range ?
- From
- Daniele Segato <daniele.bilug@gmail.com>
- Date
- Jul 5, 2010, 07:00 UTC
- Message-ID
- <AANLkTimVgEUofsrZ0SnCXdW3zMF0SOfup4lQBXwWXXP7@mail.gmail.com>
- In-Reply-To
- <AANLkTimTx2dVlK9KKi1nZpOadwDcfyzhE8nffCyK1Sqm@mail.gmail.com>
On Sat, Jul 3, 2010 at 3:38 PM, David <bouncingcats@gmail.com> 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.
[...]
Show 7 quoted lines
> 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