获取有关SHA-1提交对象的信息? [英] Get Information about a SHA-1 commit object?
本文介绍了获取有关SHA-1提交对象的信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ git log --pretty = oneline | grep -i ...
$ SHA1< ...提交信息...>
我现在有一个 SHA1
,而我想要知道影响 SHA1
的文件以及后面的 diff
这些文件的信息。我怎样才能做到这一点? 作者,父母以及从父母提交更改过的文件的差异。
I searched for a topic of interest in a commit log:
$ git log --pretty=oneline | grep -i ...
$SHA1 < ... commit message ... >
I now have a SHA1
, and I want to know information about the files affecting that SHA1
and maybe later diff
them with their parent. How can I get this done?
解决方案
git show <SHA1>
will show the commit date, author, parent, and diff of files that changed from parent commit.
这篇关于获取有关SHA-1提交对象的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文