有没有办法检索 git 中特定提交内的所有对象(blob 和树)的所有 SHA1?
最佳答案
我很确定 git rev-list
会做你想做的事:
git rev-list --no-walk <commit> --objects
请参阅关于 git rev-list
的文档以获取更多信息 http://www.kernel.org/pub/software/scm/git/docs/git-rev-list.html .
编辑:根据 Paŭlo Ebermann 的建议添加了 --no-walk
;这将只显示给定引用的对象,没有祖先提交。
关于git - 在提交 git 中查找所有对象的 SHA1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6316352/