LoginSignup
4
4

More than 5 years have passed since last update.

git > タグV0.3.* をリモートごと消し去る

Last updated at Posted at 2015-07-24

SourceTreeでタグを複数消したい(リモートからも消したい)。

V0.3.0
V0.3.1
V0.3.2
....
というV0.3.*をすべて消す場合の方法。

  1. (git)ターミナルを開く
  2. git tag -l | grep "V0.3." で関係ないタグが表示されないか確認
  3. git tag -l | grep "V0.3." | xargs git tag -d でタグをローカルから削除
  4. git push --prune --tags origin でリモートからも削除

失敗すると困ったことになるので、よくわからなければ一個ずつ消したほうがいい。

参考になったページ
http://qiita.com/ngyuki/items/6eb46e9a3ddc75781cbc

4
4
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
4
4