From 8d74313257c17c24c5537c91d8b976f3c42d9ce3 Mon Sep 17 00:00:00 2001 From: Clemens Lieb Date: Tue, 12 Dec 2017 14:56:52 +0100 Subject: [PATCH] Add reset-author and no-edit to author rewriting (#169) --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b4b1b84..807edca 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,13 @@ If you have already pushed the message, you can amend the commit and force push, If it's a single commit, amend it ```sh -$ git commit --amend --author "New Authorname " +$ git commit --amend --no-edit --author "New Authorname " +``` + +An alternative is to correctly configure your author settings in `git config --global author.(name|email)` and then use + +```sh +$ git commit --amend --reset-author --no-edit ``` If you need to change all of history, see the man page for `git filter-branch`.