View a specific Git commit

Git

Git Problem Overview


> 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 Solutions


Solution 1 - Git

git show <revhash>

Documentation here. Or if that doesn't work, try Google Code's Git Documentation

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestioneykanalView Question on Stackoverflow
Solution 1 - GitGraham BorlandView Answer on Stackoverflow