Last active
May 27, 2024 16:11
-
-
Save octocat/0831f3fbd83ac4d46451 to your computer and use it in GitHub Desktop.
I also wrote a convenient script to easily rewrite author/committer name and/or email.
You can find it here:
https://github.com/frz-dev/utilities/blob/master/git/git-author-rewrite.sh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is my stab at making this script a bit more usable:
TL;DR?
the following changes makes it possible to use the script like this:
> git rewrite-author your-old-email@example.com your-name your-new-email@example.com
changes to
~/.gitconfig
Note: Change the
<path-to-script>
with the actual path of the scriptchanged script (
git-rewrite-author.sh
)PS: if you need to force the change (because git usually stores the original refs under refs/original/), use
-f
to force rewrite.