I've worked on a lot of open source projects and one thing they all have in common is when you create a merge request (or pull request) they will often ask, "Can you clean up your request?" because commits like fix typo should not be included in a Git history.
Now there are a few ways of cleaning up commits and I'll show you what I have found to be the easiest way.