| name | fix-author |
| description | Fix the author on all commits since main to match the local or global .gitconfig |
Fix Author
Fix the author on all commits between main and HEAD using the current git
config.
- Read
user.name and user.email from git config. Local config takes
precedence over global config.
- List all commits from
main..HEAD with their authors.
- Identify commits with a mismatched author.
- If none are mismatched, tell the user and do nothing.
- Otherwise, use
git rebase main --exec 'git commit --amend --author="Name <email>" --no-edit' to fix the author on all commits.
- Report which commits were updated.