1
0
mirror of https://github.com/k88hudson/git-flight-rules.git synced 2025-03-10 12:48:43 -03:00

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

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 (master)$ git diff HEAD@{1} HEAD
``` ```
or
```sh
$ git log -n1 -p
```
<a name="#i-wrote-the-wrong-thing-in-a-commit-message"></a> <a name="#i-wrote-the-wrong-thing-in-a-commit-message"></a>
### I wrote the wrong thing in a commit message ### I wrote the wrong thing in a commit message