Skip to content

Instantly share code, notes, and snippets.

@Alex7k
Last active February 27, 2026 15:46
Show Gist options
  • Select an option

  • Save Alex7k/800138db158d38ac7bdac915838aeb0f to your computer and use it in GitHub Desktop.

Select an option

Save Alex7k/800138db158d38ac7bdac915838aeb0f to your computer and use it in GitHub Desktop.
Change commit author of last commit
git commit --amend --author="john.doe <john.doe@example.com>" --no-edit

If you want to do this for a commit older than the latest commit, run it while you're on that commit in a git rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment