Skip to content

Instantly share code, notes, and snippets.

Federico Franzoni frz-dev

Block or report user

Report or block frz-dev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@frz-dev
frz-dev / git-author-rewrite.sh
Last active Sep 26, 2018 — forked from octocat/git-author-rewrite.sh
Added OLD_NAME name replacement
View git-author-rewrite.sh
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
OLD_NAME="You Old Name"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
You can’t perform that action at this time.