Datetime do ultimo commit
git show -s --format=%ci
Datetime de um commit específico
git show -s --format=%ci [commithash]
Datetime de tags no formato iso8601
$ for tag in `git tag -l`; do echo $tag $(git show -s --format=%ci $tag^{commit}); done
1.0.0 2022-03-07 11:59:28 -0300
1.0.0-rc.27 2022-03-03 08:48:48 -0300
1.0.0-rc.28 2022-03-04 08:26:05 -0300
1.0.0-rc.29 2022-03-05 11:56:28 -0300
1.0.0-rc.30 2022-03-05 18:55:47 -0300
1.0.0-rc.31 2022-03-07 11:07:53 -0300
1.1.0 2022-03-07 17:43:49 -0300
1.1.1 2022-03-08 17:49:17 -0300
1.1.2 2022-03-08 20:03:37 -0300
1.1.3 2022-03-09 10:26:42 -0300
1.1.4 2022-03-10 18:18:04 -0300
1.1.5 2022-03-11 10:05:23 -0300
Date de tags no formato iso8601
for tag in `git tag -l`; do echo $tag $(git show -s --format=%cs $tag^{commit}); done
1.0.0 2022-03-07
1.0.0-rc.27 2022-03-03
1.0.0-rc.28 2022-03-04
1.0.0-rc.29 2022-03-05
1.0.0-rc.30 2022-03-05
1.0.0-rc.31 2022-03-07
1.1.0 2022-03-07
1.1.1 2022-03-08
1.1.2 2022-03-08
1.1.3 2022-03-09
1.1.4 2022-03-10
1.1.5 2022-03-11
Epoch de tags
for tag in `git tag -l`; do echo $tag $(git show -s --format=%ct $tag^{commit}); done
1.0.0 1646665168
1.0.0-rc.27 1646308128
1.0.0-rc.28 1646393165
1.0.0-rc.29 1646492188
1.0.0-rc.30 1646517347
1.0.0-rc.31 1646662073
1.1.0 1646685829
1.1.1 1646772557
1.1.2 1646780617
1.1.3 1646832402
1.1.4 1646947084
1.1.5 1647003923
Comentários