SyntaxFix
Write A Post
Hire A Developer
Questions
You probably want to use Interactive Rebasing, which is described in detail in that link.
You can find other good resources if you search for "git rebase interactive".