mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Add Amend Author Of Previous Commit as a git til.
This commit is contained in:
@@ -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)
|
||||
|
||||
9
git/amend-author-of-previous-commit.md
Normal file
9
git/amend-author-of-previous-commit.md
Normal 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)
|
||||
Reference in New Issue
Block a user