Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change commits author
git rebase -i HEAD~4 -x "git commit --amend --author 'Author Name <>' --no-edit"
Copy link

adefrutoscasado commented Jan 16, 2021

Count your commits using:
git shortlog -s

For my git account (for a count of 5 in the previous step, we would use HEAD~4):
git rebase -i HEAD~4 -x "git commit --amend --author 'Alejandro de Frutos <>' --no-edit"

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