Back to all tips

Git Pro Tips

Change Last Commit Author

🗓️ Published: 4/15/2026 Originally on X: 5/5/2022
Change Last Commit Author

To change the author of your last commit:

git commit --amend --author="Mohammad-Ali A'RÂBI <mohammad-ali@aerabi.com>"

Replace the sample name and email with your own values.

For older commits, you need interactive rebase instead of a simple amend.

Discuss this tip on