Created
March 14, 2018 15:58
-
-
Save dadatuputi/ddd333b8a90d11d1346ab1ed8a021d87 to your computer and use it in GitHub Desktop.
Update git repo and history with new name and email address - useful for removing PII from git history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git filter-branch -f --env-filter ' | |
CORRECT_NAME="Darkwing Duck" | |
CORRECT_EMAIL="1217269+dduck@users.noreply.github.com" | |
export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" | |
export GIT_AUTHOR_NAME="$CORRECT_NAME" | |
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL" | |
' --tag-name-filter cat -- --branches --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment