查看Git提交记录

gitreflog是Git中用于查看提交历史的工具,显示每个提交的ID、对应的tag及提交信息。这个例子展示了如何通过gitreflog追溯gotable版本库的更新,包括各个版本号、tag和提交详情,对于版本控制和回溯代码变更非常有用。
摘要由CSDN通过智能技术生成

可以使用 git reflog查看版本库中的提交(commit)记录。

git reflog

gotable版本库为例,它的git reflog显示如下:

eefc48d (HEAD -> master2.0, tag: v2.12.0, origin/master2.0, origin/HEAD) HEAD@{0}: commit: gotable 2.12
835b7a2 (tag: v2.11.0) HEAD@{1}: commit: gotable 2.11.0
e72b654 (tag: v2.10.0) HEAD@{2}: commit: gotable 2.10.0
e1ea762 (tag: v2.9.0) HEAD@{3}: commit: gotable 2.9.0 add new api AddColumn
88f196c (tag: v2.8.0) HEAD@{4}: commit: gotable 2.8.0
fb977c7 (tag: v2.7.2) HEAD@{5}: commit: gotable 2.7.2
ed20f8b (tag: v2.7.1) HEAD@{6}: commit: gotable-2.7.1 add new set API: Get
424381a (tag: v2.7) HEAD@{7}: commit: gotable 2.7 Add length API
f87c10d (tag: v2.6) HEAD@{8}: commit: [gotable] 2.6
21bd9d7 (tag: v2.5) HEAD@{9}: commit: gotable 2.5
46d11cf (tag: v2.4) HEAD@{10}: commit: gotable 2.4
913df18 HEAD@{11}: commit: 2.3.1 update README.md
681a508 HEAD@{12}: commit: gotable 2.3
a2e1480 HEAD@{13}: clone: from git@github.com:liushuochen/gotable.git
(END)

git reflog显示了每次commit提交的id(id开头的部分字符),提交对应的tag,以及提交的信息内容。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值