diff --git a/README.md b/README.md index 4f9d249..4eb64af 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,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