Skip to content

Instantly share code, notes, and snippets.

@tyoc213
Created March 31, 2016 08:17
Show Gist options
  • Save tyoc213/5337a49bdab901ea621c0da191e1cfe6 to your computer and use it in GitHub Desktop.
Save tyoc213/5337a49bdab901ea621c0da191e1cfe6 to your computer and use it in GitHub Desktop.
git change the author of the last 4 commits

git rebase -i HEAD~5 put edit in front of each commit to edit

Then for each commit

git commit --amend --author="Your Name yourmail@provider.xx"


or if correct email and user in global config

git commit --amend --reset-author

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