Git: Combine and Organize Messy Commits Using Interactive Rebase

added by John Atten
4/4/2013 11:44:16 AM


A handy feature of Git is the ability to use the interactive rebase command to combine, re-organize, and otherwise clean up a messy commit history once development of a feature or bug fix is complete. I am a firm believer in the practice of “commit early, commit often” approach. However, this can leave untold number of commits which, when merged back into mainline development, clutter up a repository.