user3769706
user3769706

Reputation:

List changes in a file using git show

git show SHA#1 will gives all the changes of commit SHA#1. I am just curious that is there a way for list changes of a specific file ( filter out result of git show SHA#1 for get changes of a file) of SHA#1 using git show.

I know that I can do it using git diff

Upvotes: 0

Views: 76

Answers (1)

zessx
zessx

Reputation: 68820

Simply add your filename :

git show <sha1> <filename>

For more details on how to specify the object you want to show, see girevisions.

Upvotes: 2

Related Questions