Git:如何获取变更集的提交信息
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6713859/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Git: How to get the commit info of a changeset
提问by prakash
I got a changeset after digging around with git blame. Now I want to know more about the changeset. The changes made and comments,etc etc.
在使用 git blame 进行挖掘后,我得到了一个变更集。现在我想了解更多关于变更集的信息。所做的更改和评论等。
What is the git command to get that information?
获取该信息的 git 命令是什么?
Looked around, but could not find the answer that I was looking for.
环顾四周,但找不到我正在寻找的答案。
回答by Fabio
Maybe git show?
也许git show?
It gives you the commit sha, the author, the comment and a complete diff of that commit. If you need you can also specify multiple changeset using this syntax.
它为您提供提交 sha、作者、评论和该提交的完整差异。如果需要,您还可以使用此语法指定多个变更集。