I want to see what was changed in a specific commit.
No Problem
git show 123456
But this commit has a ton of changes, I want to see only changes for one specific file
Let me try this
git show 123456:/foo/bar/my.file
Well, works. But not as expected. The above command will show me the entire file in rev. 123456 - but I want to see the diff for this rev (as it is for git show 123456).
Use the "--" separator:
git show 123456 -- /foo/bar/my.file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With