Skip to content

Instantly share code, notes, and snippets.

@nathanallen
Created November 17, 2016 19:12
Show Gist options
  • Save nathanallen/2047d2fb8e04027d5e7f93ecbe3b8a59 to your computer and use it in GitHub Desktop.
Save nathanallen/2047d2fb8e04027d5e7f93ecbe3b8a59 to your computer and use it in GitHub Desktop.
#!/bin/bash
git filter-branch --env-filter '
if test "$GIT_AUTHOR_EMAIL" = "OLD_EMAIL@old.com"
then
GIT_AUTHOR_EMAIL=new-email@new.com
export GIT_AUTHOR_EMAIL
fi
' -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment