Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git filter-branch author EMAIL
NEW_MAIL="jesp....@gmail.com"
git filter-branch --env-filter '
> if [[ "$GIT_AUTHOR_EMAIL" = "EMAIL" || "$GIT_AUTHOR_EMAIL" = "$NEW_MAIL" ]]
> then
> if [[ "$GIT_AUTHOR_NAME" = "Ben Alman" ]]
> then
> GIT_AUTHOR_NAME="Jesper Rønn-Jensen"
> GIT_COMMITTER_NAME="Jesper Rønn-Jensen"
> export GIT_AUTHOR_NAME
> export GIT_COMMITTER_NAME
> fi
>
> GIT_AUTHOR_EMAIL="$NEW_MAIL"
> GIT_COMMITTER_EMAIL="$NEW_MAIL"
> export GIT_AUTHOR_EMAIL
> export GIT_COMMITTER_EMAIL
> fi
> ' -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.