![]() |
![]()
| ![]() |
![]()
NAMEgit-reauthor - Rewrite history to change author´s identitySYNOPSISgit reauthor [<options>]DESCRIPTIONLets you replace the author and/or committer identities in commits and tags.The command goes through all existing commits and tags in all local branches to selectively modify the identities present in those objects. All the other information such as dates, messages,.. are preserved. You can rewrite all the identities in the commits and tags objects
by using the --all flag, or only replace the identities whose email matches
the value of the --old-email option. It is also possible to limit the
rewrite to a certain type of identity: the author or the committer identity.
By default, both of them are affected.
WARNING! This command rewrites history and as a result you
will not able to push your branch to the remote without using the --force
option.
OPTIONS-a, --all
-c, --use-config
-e, --correct-email <email>
-n, --correct-name <name>
-o, --old-email <email>
-t, --type <id>
EXAMPLESReplace the personal email and name of Jack to his work ones
Replace the email and name of Jack to the ones defined in the Git config
Replace only the email of Jack (keep the name already used)
Change only the committer email of Jack (keep the author email already used)
Set Jack´s identity as the only one of the whole repository
Set Jack as the only committer of the whole repository (keeps authors)
AUTHORWritten by Damien Tardy-Panis <damien@tardypad.me>REPORTING BUGS<http://github.com/tj/git-extras/issues>SEE ALSO<https://github.com/tj/git-extras>
|