View a specific Git commit [duplicate]
Possible Duplicate:
Get Information about a SHA-1 commit object?
I needed开发者_运维百科 to check when a specific change was added to a file I'm working on, so I used the git blame
command. From that I obtained the hash of the relevant commit. Is there a way to see the log notes of just that commit, using the hash? All the docs talk about how to look at the whole tree.
I realize could just do git log <filename>
, but there are a lot of commits for the file, and I'm loathe to go through all of them looking for this one. A simple way to view the log notes would be appreciated.
git show <revhash>
Documentation here. Or if that doesn't work, try Google Code's Git Documentation
精彩评论