Skip to content

Instantly share code, notes, and snippets.

@jayzes
Forked from coshx/history_rewrite.sh
Created July 27, 2009 19:45
Show Gist options
  • Save jayzes/156693 to your computer and use it in GitHub Desktop.
Save jayzes/156693 to your computer and use it in GitHub Desktop.
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "jayzeschin@0c2636a8-f7e4-4949-a4be-0920dbe5b3d6" ]
then
cn="Jay Zeschin"
cm="jay.zeschin@factorylabs.com"
fi
if [ "$GIT_AUTHOR_EMAIL" = "jayzeschin@0c2636a8-f7e4-4949-a4be-0920dbe5b3d6" ]
then
an="Jay Zeschin"
am="jay.zeschin@factorylabs.com"
fi
export GIT_AUTHOR_NAME=$an
export GIT_AUTHOR_EMAIL=$am
export GIT_COMMITTER_NAME=$cn
export GIT_COMMITTER_EMAIL=$cm
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment