コンテンツにスキップ

git tag

リモートリポジトリのタグを確認

1
2
3
4
5
6
$ git ls-remote --tags
From https://github.com/7rikazhexde/mkdocs-macros-utils.git
ca1926cb967473ad7671974300ea121cc561449b        refs/tags/v0.0.1
c017638d8cfd73ab210e877d978c570e600af4ea        refs/tags/v0.0.2
ac802e922f0d4d76192e202941a0973c335d16ca        refs/tags/v0.0.3
cd894ed60a55059a0287c8d21eabe37430d26a5f        refs/tags/v0.0.4

ローカルリポジトリのタグを確認

1
2
3
4
5
$ git tag
v0.0.1
v0.0.2
v0.0.3
v0.0.4

ローカルでタグ追加してリモートリポジトリに反映(Push)

1
2
git tag v0.0.1
git push origin v0.0.1