Git标签列表,显示提交sha1散列 [英] Git Tag list, display commit sha1 hashes

查看:172
本文介绍了Git标签列表,显示提交sha1散列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以 git tag 命令会列出当前的git标签

  tag1 
tag2

git tag -n 打印标签的消息

  tag1等等等等
等等标签等等等等等等等等等等等等。

获取tag1& tag2?

解决方案

$ p> git show-ref --tags


so the git tag command lists the current git tags

tag1
tag2

git tag -n prints tag's message

tag1  blah blah
tag2  blah blah

What's the best way to get the hash of tag1 & tag2 ?

解决方案

How about this?

git show-ref --tags

这篇关于Git标签列表,显示提交sha1散列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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