snippets/old_snippets/git-prev-commit-changes.en.md

436 B

title date draft snippet_types
see previous commit changes 2020-01-11T04:45:42+01:00 false
git

git log -p -2 or git lg -p -2

Viewing previous changes was something I relied on a GUI's for, like GitLab/Source-Tree, until I found this command! The -p stands for --patch and the -2 stands for last two commits.

source:

git docs