Created
June 23, 2016 17:50
-
-
Save bgromov/a1905055a8b9cdbeb1d2a87e70920cc8 to your computer and use it in GitHub Desktop.
Git: reset author for ALL commits
Thank you so much!
Thank you very much
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
Thanks. To update only your commits and not all ( even if not yours):