Skip to content

Commit

Permalink
Add reset-author and no-edit to author rewriting (k88hudson#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogel612 authored and RichardLitt committed Dec 12, 2017
1 parent 418f0a0 commit 8d74313
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <authoremail@mydomain.com>"
$ git commit --amend --no-edit --author "New Authorname <authoremail@mydomain.com>"
```

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`.
Expand Down

0 comments on commit 8d74313

Please sign in to comment.