-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include the Author name as well #1
Comments
Hi this is possible but not straightforward as I need to do a lot of argument parsing to separate email and name and keep the ability to only set email without name. |
Would you be willing to install and run I worked out some commands for you |
Install and run the git-filter-repo tool, which is linked from the git-filter-branch official docs as a better replacement. ExamplesExample from their docs, modified here for clarity. Note use of Python code for callbacks. $ git filter-repo --email-callback '
return b"new@example.com" if email == b"old@localhost" else email
' Take that further: $ git filter-repo --name-callback '
return b"New name" if name == b"Old name" else name
' |
Thanks for the effort Michael and thanks for pointing me to this. (and sorry for the late reply). |
Sorry, I'm not good enough with Git to offer a PR. However, I wonder if the script could be modified so that it can change the Author name as well as the email?
Thank!
The text was updated successfully, but these errors were encountered: