5
4

More than 5 years have passed since last update.

あるコミットがどのリリースか見つける

Last updated at Posted at 2014-03-21
$ git name-rev コミットのハッシュ

出力にbranchを含めたくない場合

$ git name-rev --tags コミットのハッシュ

git logにtagをつけて出力

$git log HEAD~2..HEAD | git name-rev --stdin --tags
5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4