title: Changing a minor mistake in an older commit in git
body: <p>What is the best way of fixing a minor mistake, a typo e.g., in an older commit instead of making a new commit that fixes it? I don't want to mess up the history with a lot of "typo-fixing" commits. I have not yet pushed the commits to anyone.</p>
  
  <p>Let's say in this senario, I want to fix a code typo in January 15 commit while maintaining the other 2 commits as well.</p>
  
  <pre><code>commit 826da06f085664298164a4bfc9994cad109c59f8
  Author: Me
  Date:   Tue Jan 17 18:48:12 2012 +0800
  
      feature 3 working
  
  commit d816dd97a207add63d31958c3ffba84b65681810
  Author: Me
  Date:   Tue Jan 16 17:47:29 2012 +0800
  
      feature 2 working
  
  commit 972ded30c20692cb74ae07d0c941c43022c905bd
  Author: Me
  Date:   Thu Jan 15 08:48:40 2012 +0800
  
      feature 1 working
  </code></pre>