git reauthor
all
Change details about an author identity. Since this command rewrites the Git history, `--force` will be needed when pushing next time. Part of `git-extras`.
More info →Options (5)
-o, --old-emailbooleanChange an author's email and name across the whole Git repository
Example:
git reauthor {{[-o|--old-email]}} {{[email protected]}} {{[-e|--correct-email]}} {{[email protected]}} {{[-n|--correct-name]}} "{{name}}"-e, --correct-emailbooleanChange an author's email and name across the whole Git repository
Example:
git reauthor {{[-o|--old-email]}} {{[email protected]}} {{[-e|--correct-email]}} {{[email protected]}} {{[-n|--correct-name]}} "{{name}}"-n, --correct-namebooleanChange an author's email and name across the whole Git repository
Example:
git reauthor {{[-o|--old-email]}} {{[email protected]}} {{[-e|--correct-email]}} {{[email protected]}} {{[-n|--correct-name]}} "{{name}}"-c, --use-configbooleanChange the email and name to the ones defined in the Git config
Example:
git reauthor {{[-o|--old-email]}} {{[email protected]}} {{[-c|--use-config]}}-a, --allbooleanChange the email and name of all commits, regardless of their original author
Example:
git reauthor {{[-a|--all]}} {{[-e|--correct-email]}} {{[email protected]}} {{[-n|--correct-name]}} {{name}}Examples (3)
Change an author's email and name across the whole Git repository
git reauthor [-o|--old-email] [email protected] [-e|--correct-email] [email protected] [-n|--correct-name] "name"Change the email and name to the ones defined in the Git config
git reauthor [-o|--old-email] [email protected] [-c|--use-config]Change the email and name of all commits, regardless of their original author
git reauthor [-a|--all] [-e|--correct-email] [email protected] [-n|--correct-name] namemade by @shridhargupta | data from tldr-pages