Rewriting Local Git Commits

Sometimes we find ourselves in a situation where we&rsquo;ve been working on a feature locally and have a lot of local commits that look slightly messy. For example, commits may have been done for typing, multiple styling commits, and tests that failed and that were later refactored to work. There are many reasons why you might have a local commit history that you don&rsquo;t want to have added to…