Created
June 23, 2016 17:50
-
Star
(298)
You must be signed in to star a gist -
Fork
(81)
You must be signed in to fork a gist
-
-
Save bgromov/a1905055a8b9cdbeb1d2a87e70920cc8 to your computer and use it in GitHub Desktop.
Git: reset author for ALL commits
Awesome! Thank you
Thanks a lot.
Thanks
Thank you a lot!
@bgromov , Newname is our github id or actual name?
both will work.
git filter-repo
solution:
git filter-repo --preserve-commit-hashes --name-callback "$(cat <<'EOF'
return b'<replace everything between the quotes with your name>'
EOF
)" --email-callback "$(cat <<'EOF'
return b'<replace everything between the quotes with your email>'
EOF
)"
If you had signed your commits before this, note that the above command will remove those signatures. For me, this answer was useful to resign all commits without loosing commit dates.
Works good, except merge commits, where it still shows the another user
Work fine. Thank you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much