title: Change git email for previous commits
body: <p>So I read a lot about how to change previous commit's email address but for some reason mine is not updating. </p>
  
  <p>I did like 40 commits to my private repo with my local email (nameofMyComputer@kevin.local) which is bad since this email is not associated(and it can't be) with github.</p>
  
  <p>I then remembered that I needed to set the git.config before and so I did: </p>
  
  <pre><code> git config user.email "newemail@example.com"
  </code></pre>
  
  <p>and did a test commit and it worked perfectly.</p>
  
  <p>Is there a way I can revert all my previous commits to this new email?</p>
  
  <p>I read this question on SO <a href="https://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git">Change the author and committer name and e-mail of multiple commits in Git</a> and used this</p>
  
  <pre><code> git filter-branch -f --env-filter "                         
                      GIT_AUTHOR_EMAIL='kevin.cohen26@gmail.com'; 
                      GIT_COMMITTER_EMAIL='kevin.cohen26@gmail.com';
                      " 
                  HEAD
  </code></pre>
  
  <p>But it DID NOT work... I can still see the email of my previous commits with the .patch extension as the .local email address</p>