Introduction
Sometimes you make a commit message that is unclear or has a typo. Git lets you change past commit messages using a tool called rebase. This helps keep your project history clean and easy to understand.
When you want to fix a typo in the last few commit messages before sharing your work.
When you want to add more detail to a commit message to explain what you did.
When you realize a commit message is too vague and want to make it clearer.
When you want to reorder commits and update their messages at the same time.
When preparing your commits before pushing them to a shared repository.