LoginSignup
144
132

More than 5 years have passed since last update.

gitでタグを付ける

Last updated at Posted at 2015-04-16

gitでタグをつけて管理する方法。

1. ローカルでタグ付ける

git tag v_1.0.0

2. リモートに反映させる

git push origin v_1.0.0

番外編: ローカルでつけたタグを全てリモートに反映させる

git push origin --tags

番外編2: 過去のコミットにタグを付ける

git log --pretty=oneline

hogehoge1 dev
fugafuga1 pre
fufufufu1 prod

git tag pre_v1.0.0 fugafuga1

番外編3: リモートのタグを消す

git tag -d [タグの名前]
git push origin :[タグの名前]

ブランチを消す時と同じやり方だった

144
132
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
144
132