mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Add "Oh crap, what did I just commit"
This commit is contained in:
parent
9536d6987d
commit
abb085de05
@ -274,3 +274,12 @@ And finally, let's cherry-pick the commit for bug #14:
|
||||
```
|
||||
(14)$ git cherry-pick 5ea5173
|
||||
```
|
||||
|
||||
<a name="diff-last"></a>
|
||||
## What did I just do?
|
||||
|
||||
Let's say that you just blindly committed changes with `git commit -a` and you're not sure what the actual content of the commit you just made was. You can check the difference between your current HEAD and what your HEAD just was with:
|
||||
|
||||
```
|
||||
(master)$ git diff HEAD@{1} HEAD
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user