how to git diff with previous commit code example
Example 1: git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
Example 2: git diff two commits
-> git diff 0da94be 59ff30c > my.patch
-> git apply my.patch
git tag -a v1.2 9fceb02 -m "Message here"
-> git diff 0da94be 59ff30c > my.patch
-> git apply my.patch