git commit --author='Alice Smith <alice@example.com>' -m 'Refactor auth flow'
Commit with a different author identity
Overrides the author recorded in the new commit, useful for committing on behalf of someone else or fixing a misconfigured identity. The value is a display name plus an email in angle brackets. Git still records you as the committer.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.