From 23fe47ac2ad6b25971574d5f523a01ae8cc8b6f7 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 23 Jul 2015 18:21:17 -0700 Subject: [PATCH] Add Amend Author Of Previous Commit as a git til. --- README.md | 1 + git/amend-author-of-previous-commit.md | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 git/amend-author-of-previous-commit.md diff --git a/README.md b/README.md index 45e8471..e359ef1 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/git/amend-author-of-previous-commit.md b/git/amend-author-of-previous-commit.md new file mode 100644 index 0000000..1d26ee2 --- /dev/null +++ b/git/amend-author-of-previous-commit.md @@ -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 " +``` + +[source](http://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git)