From 1b8e378cf4105756afbdc3035b403689f2b8ab9d Mon Sep 17 00:00:00 2001 From: Steve Conklin Date: Thu, 7 Aug 2014 07:41:35 -0500 Subject: [PATCH] add instructions for changing the author of the last commit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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