1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 15:46:01 +02:00
tldr/pages/common/git-reauthor.md
Managor 0e8893e1ba
git*: refresh pages (#16372)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-05-05 09:12:13 +03:00

816 B

git reauthor

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 information: https://github.com/tj/git-extras/blob/master/Commands.md#git-reauthor.

  • Change an author's email and name across the whole Git repository:

git reauthor {{[-o|--old-email]}} {{old@example.com}} {{[-e|--correct-email]}} {{new@example.com}} {{[-n|--correct-name]}} "{{name}}"

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

git reauthor {{[-o|--old-email]}} {{old@example.com}} {{[-c|--use-config]}}

  • Change the email and name of all commits, regardless of their original author:

git reauthor {{[-a|--all]}} {{[-e|--correct-email]}} {{name@example.com}} {{[-n|--correct-name]}} {{name}}