Re: Pack several linear commits into one
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 3, 2007, 09:32 UTC
- Message-ID
- <m3y7ccunrh.fsf@roke.D-201>
- In-Reply-To
- <c0d4c9e90712030106u40b871ecjd5f7b8d078c8be36@mail.gmail.com>
"Jacob Kroon" <jacob.kroon@gmail.com> writes:
> Is there a tool for repacking several linear commits into one single ?
You can use either "git rebase --interactive" and replace 'pick' with 'squash', or (simpler for replacing all the commits by one big commit) "git merge --squash". See documentation for details.
Note that if you want remove those 'several linear commits', you better not have them published yet.
> Please CC me since I'm not a subscriber to the list.
You can read this list via archives, or using NNTP interface (in news reader):
nntp://news.gmane.org/gmane.comp.version-control.git
-- Jakub Narebski ShadeHawk on #git Poland