From 35715611d4f0a7a4b31dfc954f97e38b41216f96 Mon Sep 17 00:00:00 2001 From: Alvaro Garcia Date: Mon, 15 Feb 2016 00:38:20 +0100 Subject: [PATCH] add another way of seeing the last committed diff --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 392c231..937e103 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,12 @@ Let's say that you just blindly committed changes with `git commit -a` and you'r (master)$ git diff HEAD@{1} HEAD ``` +or + +```sh +$ git log -n1 -p +``` + ### I wrote the wrong thing in a commit message