开发者

View a specific Git commit [duplicate]

开发者 https://www.devze.com 2023-04-11 12:38 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Get Information about a SHA-1 commit object?
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

精彩评论

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

关注公众号