Bash/Zsh Function to Change Author for Commit(s)
Based off my Answer on SO.
The below function cca
(shorthand for change-commit-author) makes some assumptions:
- The branch with commit(s) to update author for is the current branch.
- Git User / Email (AKA New Author) is the one currently set up with
git
. - One of the following arguments is passed in: