git show-ref

在Git仓库中,通过`gitshow-ref--head--dereference`命令可以查询到当前submodule的最新commitID以及对应的HEAD、master分支和远程origin的引用。此外,输出还包括不同版本标签(v1.0.0,v2.0.0,v2.1.0,v2.1.1)及其对应的commit历史。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

git show-ref

查询某个submodule的commitID及对应的分支名

Banting@DESKTOP-UDFLV4N MINGW64 /d/Code/github/banting_x.5.x_cam_v2_prod/sdk (master)
$ git show-ref --head --dereference
8052b335b4aedc4ff450ce27e7d25283b4ea32ab HEAD
8052b335b4aedc4ff450ce27e7d25283b4ea32ab refs/heads/master
8052b335b4aedc4ff450ce27e7d25283b4ea32ab refs/remotes/origin/HEAD
de36d57b0a0b501d674f24664c72c9f537a05b30 refs/tags/v1.0.0
e17e14eef735049a72b1c08bd6ff425b0df083e4 refs/tags/v2.0.0
34a3fbfa02df31f33c56ee0352e9a6abb33ba7eb refs/tags/v2.0.0^{}
38a6c10cbeb02f19b68205296373ca62fa50971a refs/tags/v2.1.0
80e1ab43c77a2fefdc18ed39156b1c4669d3e6eb refs/tags/v2.1.0^{}
279f08d43aa3f817e9a204b97bb6d056a3f3f5e7 refs/tags/v2.1.1
c9b71f28f9e6b8a90cb695b85369fe6ebbe8c6b9 refs/tags/v2.1.1^{}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值