Re: Any way to "flatten" a series of changes in git
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Oct 22, 2009, 20:59 UTC
- Message-ID
- <m3hbtrdu1r.fsf@localhost.localdomain>
- In-Reply-To
- <26ae428a0910221303n493fb7s701269d694110685@mail.gmail.com>
Howard Miller <howard@e-learndesign.co.uk> writes:
Show 5 quoted lines
> I have a branch with a whole series of commits. I want to export this
> work to be customer (to their svn repo if that has any bearing on it).
> All the stuff in the history is irrelevant to my customer ("committing
> now, going to bed" etc.) so I'd like to create a new branch that only
> has one commit.. the end point with a new message. Is this possible?You can use either "git merge --squash" or "git rebase --interactive" (changing 'pick' to 'squash').
-- Jakub Narebski Poland ShadeHawk on #git