Thursday, August 2, 2012

squashing commits with rebase

Old article, but useful. Click on the link: squashing commits with rebase.

Basically, there are 3 steps:
  1. git rebase -i <REVISION>
  2. git will launch an editor to edit the command file, change the pick command to squash for all except the first one and save.
  3. git will launch an editor to edit the comments, change accordingly and save.

No comments: