如何列出自某些提交以来的提交? [英] How to list commits since certain commit?
本文介绍了如何列出自某些提交以来的提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法从一个给定的提交号码提交到HEAD的提交列表?
我知道这可以通过提交日期,但我需要它提交号码和我似乎无法找到任何文档,或者即使这是可能的。
git rev-list< since_hash> .. HEAD
或包含提交:
git rev-list< since_hash> ^ .. HEAD
您可以使用 git log
来代替 git rev-list
以获得更多详细信息。
Is there anyway to get a list of commits from a given commit number to HEAD?
I know this is possible by the commit date, but I need it by the commit number and I can't seem to find any documentation, or even if this is possible.
解决方案
git rev-list <since_hash>..HEAD
or to include the commit:
git rev-list <since_hash>^..HEAD
You can use git log
instead of git rev-list
as well to get additional details.
这篇关于如何列出自某些提交以来的提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文