Skip to content

Instantly share code, notes, and snippets.

@huuphuoc1396
Last active July 17, 2018 15:17
Show Gist options
  • Save huuphuoc1396/923323c35dbf176afc18c4145ca62f97 to your computer and use it in GitHub Desktop.
Save huuphuoc1396/923323c35dbf176afc18c4145ca62f97 to your computer and use it in GitHub Desktop.
Change the author (name or email) of a commit
git commit --amend --author "your_name <your_email@mail.com>" --no-edit && git rebase --continue
git push origin master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment