add another way of seeing the last committed diff

This commit is contained in:
Alvaro Garcia 2016-02-15 00:38:20 +01:00
parent a289c22e73
commit 35715611d4
1 changed files with 6 additions and 0 deletions

View File

@ -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
```
<a name="#i-wrote-the-wrong-thing-in-a-commit-message"></a>
### I wrote the wrong thing in a commit message