This gist makes it extremely easy to replace git author information by rewriting your git commit history.
Note
We make use of the git-filter-repo
dependency because git filter-branch
has a plethora of pitfalls.
Warning
- Every commit made by
$GIT_OLD_NAME
will be replaced with$GIT_NEW_NAME
. - Every commit made by
$GIT_OLD_EMAIL
will be replaced with$GIT_NEW_EMAIL
.