Fixing user.name in history

Posted on Monday, September 1, 2014

I messed up a personal repository. I have my business email on all my
commits! I know now better after doing a
write up on git config files and their scope at http://www.whiteboardcoder.com/2014/08/the-three-git-config-files.html
. After writing that, I now know to set
my personal user.name and user.email on my personal repositories in the
"Repository Specific" git config file.

But that information does not help me fix my errors in my
prior commits.

Warning: This action is destructive to your repository's history. If
you're collaborating on a repository with others, it's considered bad
practice to rewrite published history. You should only do this in an
emergency.

In my case these are personal repositories, so I figure I am
ok.

Also, to be safe, I cloned the repo to a temporary directory to test this script out.