开发者

View a specific Git commit [duplicate]

This question already has answers here: Closed 11 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜