commands.sh

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-emailboolean

Change 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-emailboolean

Change 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-nameboolean

Change 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-configboolean

Change the email and name to the ones defined in the Git config

Example: git reauthor {{[-o|--old-email]}} {{[email protected]}} {{[-c|--use-config]}}
-a, --allboolean

Change 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] name
made by @shridhargupta | data from tldr-pages