From 6722c723509ba04c962fee4795deb911fa95f776 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Tue, 18 Aug 2015 15:53:51 -0400 Subject: [PATCH] Added more text to amend section to explain when it is good to edit a commit --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index a7c56c4..8055e07 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,14 @@ For clarity's sake all examples in this document use a customized bash prompt in ## I wrote the wrong thing in a commit message +If you wrote the wrong thing and the commit has not yet been pushed, you can do the following to change the commit message: + ```sh git commit --amend ``` +If you have already pushed the message, you can amend the commit and force push, but this is not recommended. + ## I need to add staged changes to the previous commit ```