如何找出哪些版本包含给定的GIT提交? [英] How to find out which release(s) contain a given GIT commit?

查看:93
本文介绍了如何找出哪些版本包含给定的GIT提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人固定HHVM在此提交了一个错误:



https://github.com/facebook/hhvm/commit/796f986aba300b3f00b9ece0bf654c452ee217be



我想知道这是否犯已经是一部分官方发布



有没有在GitHub上或我机器上的GIT存储库的本地克隆中列出包含此提交的发布/标记的方法?

解决方案正如评论中的其他成员指出的那样,这已经在这里介绍过了,就像:

  git tag --contains< commit> 


Someone fixed a bug in HHVM in this commit:

https://github.com/facebook/hhvm/commit/796f986aba300b3f00b9ece0bf654c452ee217be

I want to know if this commit is already part of the official releases.

Is there a way to list the releases/tags that contain this commit, either on GitHub, or in a local clone of the GIT repository on my machine?

解决方案

As pointed out by fellow members in the comments, this is already covered here, and is as easy as:

git tag --contains <commit>

这篇关于如何找出哪些版本包含给定的GIT提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆