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

Comments

Popular posts from this blog

Database, schema, and table sizes in Greenplum

Greenplum update with multiple tables

Show running queries on Postgresql/Greenplum