Sunday, October 9, 2016

Show file in git at specific commit

I wanted to double check what a script looked like two commits ago.

git log path/to/file

Get the commit number from the version I want to see, get the first 4 to 6 characters.

git show commit#:path/to/file

Credit goes here

No comments:

Post a Comment