Changing Git Commit Email Address
Easy bash script to change the emails used in a git repo
git config user.email "[email protected]"git filter-branch --env-filter ' OLD_EMAIL="[email protected]" CORRECT_EMAIL="[email protected]" if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] then export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" fi if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ] then export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL" fi ' --tag-name-filter cat -- --branches --tagsgit push --force --tags origin 'refs/heads/*'
Last updated