Saturday, May 27, 2017

git: View changes in last commit of a file

https://stackoverflow.com/questions/10176601/git-diff-file-against-its-last-change

See last commit's changes: git log -p -1 filename

See last 2 commits' changes:  git log -p -2 filename

No comments:

Post a Comment

Followers

Blog Archive