docs

docs and guides
git clone git://git.2f30.org/docs
Log | Files | Refs

commit a0d63bf4b982804e4e28e07c9f71a419ff779ccb
parent 855cda47a994cedd54cce06ca0e315d5d2201675
Author: sin <sin@2f30.org>
Date:   Thu, 27 Jun 2013 17:57:33 +0100

Explain git-amend(1)

Diffstat:
Msimple-git | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/simple-git b/simple-git @@ -104,6 +104,12 @@ To revert a modified file/dir to whatever is in HEAD: $ git checkout <file|dir> +To change the contents of your last commit: + + $ # change files + $ git add <files> + $ git commit --amend + For a simple workflow you can avoid using the staging area completely. Just use the -am option for git-commit(1) so you can stage and commit everything in one step.