Skip to content

Instantly share code, notes, and snippets.

@stephenway
Created December 19, 2015 04:02
Show Gist options
  • Star 39 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save stephenway/eaf781835d9f9068b7dc to your computer and use it in GitHub Desktop.
Save stephenway/eaf781835d9f9068b7dc to your computer and use it in GitHub Desktop.
Change last commit author
git commit --amend --author "Stephen Way <way.stephen@gmail.com>" --no-edit && \
git rebase --continue
...
git push origin master --force
@Stevoisiak
Copy link

Does this overwrite the committer email as well?

@grubersjoe
Copy link

@davidvpe
Copy link

davidvpe commented Jun 7, 2018

Amazing, thanks

@victor-dementiev
Copy link

Thanks. It works!

@devsb5
Copy link

devsb5 commented Jun 28, 2018

Thank, It save my days

@yokkidack
Copy link

Thank you

@aramgyulnazaryan
Copy link

Thank you

@yanicakj
Copy link

Thanks this worked

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