diff --git a/README.md b/README.md index bd413d6..b088405 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,17 @@ Since rebasing **replaces the old commit(s) with a new one**, you must force pus (mybranch) $ git push origin mybranch -f ``` + +## I committed with the wrong name and email configured + +If it's a single commit, amend it + +``` +$ git commit --amend --author "New Authorname " +``` + +If you need to change all of history, see the man page for 'git filter-branch' + ## I committed to master instead of a new branch