Introduction
Sometimes you want to clean up your commit history before sharing your work. Interactive rebase lets you change, combine, or reorder commits easily.
When you want to combine several small commits into one clear commit before pushing.
When you need to fix a typo or mistake in an earlier commit message.
When you want to reorder commits to make the history easier to understand.
When you want to remove unnecessary commits from your branch.
When you want to split a big commit into smaller logical commits.