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.

Revisions

  1. nathanallen created this gist Nov 17, 2016.
    9 changes: 9 additions & 0 deletions git-rebase-rename-email.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/bash

    git filter-branch --env-filter '
    if test "$GIT_AUTHOR_EMAIL" = "[email protected]"
    then
    [email protected]
    export GIT_AUTHOR_EMAIL
    fi
    ' -- --all