- https://medium.com/@xiaolishen/use-multiple-ssh-keys-for-different-github-accounts-on-the-same-computer-7d7103ca8693.
- https://gist.github.com/jexchan/2351996
$ git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yourname'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='yourname'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD;
$ git commit --amend --author="John Doe <[email protected]>";
$ git commit --amend --author="Author Name <[email protected]>" --no-edit
Amending the Last Commit To change the last commit, you can simply commit again, using the --amend flag
$ git commit --amend -m "Title" -m "Description