Return to Snippet

Revision: 55877
at February 26, 2012 07:26 by beneberle


Initial Code
git rebase -i HEAD~4

# The ~4 in the command designates the number of commits that you wish to combine
# the command will open up a text editor from wich you can choose which commits 
# to 'pick' and which to 'squash'. save and close, then you'll have a chance to edit
# the individual commit messages. save and close that and you're done. squashed.

Initial URL
http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html

Initial Description
Combine multiple smaller incremental commits into larger ones, perfect for encouraging you to commit often while enabling you to summarize a day's work into one, or more, simplified commit.

WARNING: Only do this on commits that haven’t been pushed an external repository.

Initial Title
Git Rebase and Squash

Initial Tags
git

Initial Language
Bash