157
87

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

git ใง branch ใ‚’ push ใ—ใŸใ ใ‘ใ˜ใ‚ƒ tag ใฏ push ใ•ใ‚Œใชใ„่ฉฑ

157
Last updated at Posted at 2015-12-08

่กจ้กŒใฎไปถใ€git flow ใงใƒชใƒชใƒผใ‚นใƒ–ใƒฉใƒณใƒใ‚’ใƒ—ใƒƒใ‚ทใƒฅใ—ใŸๆ™‚ใซใ€ใƒชใƒขใƒผใƒˆใฎๆ–นใงใ‚ฟใ‚ฐใŒๅๆ˜ ใ•ใ‚Œใฆใชใ‹ใฃใŸใฎใงๆฐ—ไป˜ใใพใ—ใŸใ€‚ใƒ–ใƒฉใƒณใƒใƒ—ใƒƒใ‚ทใƒฅใ—ใŸใ‚‰ใ€ใใฎใ‚ณใƒŸใƒƒใƒˆใฎใ‚ฟใ‚ฐใ‚‚ไธ€็ท’ใซๅๆ˜ ใ•ใ‚Œใ‚‹ใ‚‚ใ‚“ใ ใจๆ€ใฃใฆใŸใ€‚
ใ€€ใ€€
ๆ“ไฝœใฏใƒ–ใƒฉใƒณใƒใจไธ€็ท’ใงใ€ใ‚ฟใ‚ฐๅใ”ใจใซๅ€‹ๅˆฅใซ

$ git push origin TAGNAME (TAGNAME ใฏไปปๆ„ใฎใ‚ฟใ‚ฐๅ)

ใ‚‚ใ—ใใฏใ€ๅ…จ้ƒจไธ€ๆฐ—ใซ

$ git push origin --tags

ใงๅๆ˜ ใงใใพใ™ใ€‚

ใพใŸใ€ใ‚ฟใ‚ฐใฎใƒชใƒขใƒผใƒˆใ‹ใ‚‰ใฎๅ‰Š้™คใ‚‚ใƒ–ใƒฉใƒณใƒใจๅŒๆง˜ใซ

$ git tag -d TAGNAME  
$ git push origin :TAGNAME

ใ‚‚ใ—ใใฏใ€
$ git push --delete origin TAGNAME
ใงๅ‰Š้™คใ€‚

ๅฟ˜ใ‚ŒใŒใกใชใฎใงใ€่‡ชๅ‹•ๅŒ–ใ—ใŸใ„ใ€‚
โ†“

2024/07/23 ่ฟฝ่จ˜
ใ‚ณใƒกใƒณใƒˆใงใ€ใ‚ฟใ‚ฐใ‚‚ๅŒๆ™‚ใซใƒ—ใƒƒใ‚ทใƒฅใ™ใ‚‹่จญๅฎšใŒใ‚ใ‚‹ใ“ใจใ‚’ๆ•™ใˆใฆใ„ใŸใ ใใพใ—ใŸใ€‚
ใ‚ใ‚ŠใŒใจใ†ใ”ใ–ใ„ใพใ™ใ€‚

$ git config --global push.followTags true
157
87
4

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
157
87

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?