git でリモートのタグ削除
git tag -d TAGNAME
git push origin :TAGNAME
追記(2012-09-13)
TAGNAME や BRANCHNAME の前にコロンを付けるかわりに、次のようにすることができるようです。こちらのほうが分かりやすいですね。
git push --delete origin TAGNAME
git push --delete origin BRANCHNAME
以下のようなミスを考えると --delete 大変ありがたい。
IO_Bit(master) $ git tag -d 2.1.3
Deleted tag '2.1.3' (was f393089)
Pro:IO_Bit(master) $ git push --tags
Everything up-to-date
IO_Bit(master) $ git push origin:2.1.3
ssh: Could not resolve hostname origin: nodename nor servname provided, or not known
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
IO_Bit(master) $ git push --delete origin 2.1.3
To git@github.com:yoya/IO_Bit.git
- [deleted] 2.1.3
Pro:IO_Bit(master) $
(git push origin:2.1.3 でなく git push origin :2.1.3 が正解。: の前のスペースを忘れてる。)