vngjla
Last Updated: May 25, 2016
·
5.512K
· fr0gs

Git check diff HEAD and the previous commit

git
git diff HEAD^ HEAD

With this line we can check the changes from the last commit and the previous one without something like:

git diff <commit_id> <commit_id2>

2 Responses
Add your response

24634

You can do it shorter: git show

over 1 year ago ·
27670

Thank you!

over 1 year ago ·
Filed Under

Awesome Job

Frontend Web Developer for Games
·
Leamington Spa (United Kingdom)
·
Full Time