1
0

Gitで作成したタグを付け直したい

Posted at

1. はじめに

  • Gitでタグを追加した時に名前の間違いに気づき即修正したい
  • ローカル、リモートリポジトリ両方で修正したい

2. 開発環境

  • Git

3. Gitコマンド

  • ローカルリポジトリのtagの削除
    git tag -d Prototype1.0.0

  • リモートリポジトリへpush
    git push origin --delete Prototype1.0.0

  • ローカルリポジトリにtagを追加
    git tag -a Prototype1.0.1

  • リモートリポジトリへpush
    git push origin --tags

4. 注意事項

  • 基本は名前を間違えないようにして実施しないようにする

5. 参考文献

1
0
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
1
0