Useful commands to amend author and committer information.
First, basics. Setting user name and email:
# local, for project level
git config user.name "Kanan Rahimov"
git config user.email mail@kenanbek.me
# global
git config --global user.name "Kanan Rahimov"
git config --global user.email mail@kenanbek.me
Amend author information:
git commit --amend --author="Kanan Rahimov <mail@kenanbek.me>" --no-edit
Reset author and committer information for the most recent commit:
git commit --amend --no-edit --reset-author
Reset author and committer information for entire history:
git rebase -r --root --exec "git commit --amend --no-edit --reset-author"