pierrechls / changing-author-info

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

Home Page:https://help.github.com/articles/changing-author-info/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://help.github.com/articles/changing-author-info/

License:MIT License


Languages

Language:Shell 100.0%