Git check diff HEAD and the previous commit
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>
Written by Esteban
Related protips
2 Responses
You can do it shorter: git show
over 1 year ago
·
Thank you!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#