Skip to content

Commit

Permalink
email
Browse files Browse the repository at this point in the history
  • Loading branch information
stefango committed Dec 21, 2024
1 parent 80f0d95 commit fd5fcc6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions email.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="stefango"
CORRECT_EMAIL="[email protected]"
if [ "
$GIT_COMMITTER_EMAIL" = "$
OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="
$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$
CORRECT_EMAIL"
fi
if [ "
$GIT_AUTHOR_EMAIL" = "$
OLD_EMAIL" ]
then
export GIT_AUTHOR_NAME="
$CORRECT_NAME"
export GIT_AUTHOR_EMAIL="$
CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags

0 comments on commit fd5fcc6

Please sign in to comment.