Skip to content

Instantly share code, notes, and snippets.

@adefrutoscasado
Created October 7, 2020 17:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Change commits author
git rebase -i HEAD~4 -x "git commit --amend --author 'Author Name <author.name@mail.com>' --no-edit"
@adefrutoscasado
Copy link
Author

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 <adefrutoscasado@gmail.com>' --no-edit"

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