collapsing commits with rebase
- From
Geoff Russell <geoffrey.russell@gmail.com>
- Date
- Jan 8, 2009, 00:08 UTC
- Message-ID
- <93c3eada0901071608r190a723bma502b68c4ab81a08@mail.gmail.com>
Dear gits,
I have a series of commits:
A---B---C---D---E---F
I want to collapse B---C---D into one single commit. git rebase -i B will allow me to do this, but I'm looking for a non-interactive incantation.
Cheers, Geoff Russell
P.S. The context is a program that performs a single high level operation on a repository as a series of commits but then wants to turn it back into a single commit without user intervention so it subsequently looks like a single op in the history.