/changing-author-info

Changing the Git history of your repository using a script with parameters

Primary LanguageShellMIT LicenseMIT

version

changing-author-info

Changing the Git history of your repository using a script with parameters

🚀 How to use it

Get script from the repository

wget https://raw.githubusercontent.com/pierrechls/changing-author-info/master/git-author-rewrite.sh

Make it executable [optional]

chmod +x git-author-rewrite.sh

Run the script

./git-author-rewrite.sh "old-email@example.com" "Correct Name" "correct-email@example.com"

Push the corrected history to GitHub:

git push --force --tags origin 'refs/heads/*'

🎉 Credits

Project inspired by a github article.