git tag

git tag はタグの作成・一覧・削除などを行うコマンドである。

$ git tag r20090831
$ git push github master
Everything up-to-date

タグをつけたことはただ push してもリモートに反映されない。 タグを別のリポジトリに push する場合には –tags オプションが必要。

$ git push github master --tags
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:nishimotz/facesynthesizer.git
 * [new tag]         r20090831 -> r20090831

github のリポジトリにタグをつけると、そのバージョンを zip や tar で ダウンロードしてもらえるようになる。

http://github.com/nishimotz/facesynthesizer/tree/r20090831

git push でブランチではなくタグの名前を指定して push できる:

$ git push github nvdajp-111016
Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:nishimotz/htsengineapi.git
 * [new tag]         nvdajp-111016 -> nvdajp-111016

git_tag.txt · 最終更新: 2011/10/16 22:02 by Takuya Nishimoto
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0