简体   繁体   中英

Map a Git commit to a release/tag

In GitHub, is there a way to view a particular commit and then map this to the associated tag/release that it was included in?

I realize I can do this with git log, but that requires checking out the repo - I'm looking for a solution through the web interface, if it exists.

This can be done through the GitHub UI - click on any commit in a repo's history, and if it was included in a tag or release, you'll see the release/tag number in the header section along the top:

提交示例突出显示了发布标签

If no release/tag number appears, then the commit hasn't been included in a tag or release yet.

Here's the commit in the image above.

Here's a similar answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM