1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Amend Author Of Previous Commit as a git til.

This commit is contained in:
jbranchaud
2015-07-23 18:21:17 -07:00
parent 5260685d6f
commit 23fe47ac2a
2 changed files with 10 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
### git
- [Accessing a Lost Commit](git/accessing-a-lost-commit.md)
- [Amend Author Of Previous Commit](git/amend-author-of-previous-commit.md)
- [Checkout Old Version Of A File](git/checkout-old-version-of-a-file.md)
- [Checkout Previous Branch](git/checkout-previous-branch.md)
- [Clean Out All Local Branches](git/clean-out-all-local-branches.md)

View File

@@ -0,0 +1,9 @@
# Amend Author Of Previous Commit
The author of the previous commit can be amended with the following command
```bash
$ git commit --amend --author "Don Draper <ddraper@sterlingcooper.com>"
```
[source](http://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git)