Added git-delete-tag

This commit is contained in:
Tj Holowaychuk 2010-08-10 21:15:30 -07:00
parent 4dc99404ac
commit 0ed2a49b3c
3 changed files with 13 additions and 0 deletions

View file

@ -5,6 +5,7 @@ BINS = bin/git-count \
bin/git-ignore \
bin/git-changelog \
bin/git-delete-branch \
bin/git-delete-tag \
bin/git-release
install:
@ -16,5 +17,6 @@ uninstall:
rm -f $(PREFIX)/bin/git-changelog
rm -f $(PREFIX)/bin/git-release
rm -f $(PREFIX)/bin/git-delete-branch
rm -f $(PREFIX)/bin/git-delete-tag
.PHONY: install uninstall

View file

@ -67,6 +67,12 @@
$ git delete-branch integration
## git delete-tag <name>
Deletes local and remote tag _name_.
$ git delete-tag 0.0.1
## git-changelog
Populates the file named matching _change|history -i_ with the commits

5
bin/git-delete-tag Normal file
View file

@ -0,0 +1,5 @@
#!/bin/sh
test -z $1 && echo "tag required." && exit 1
git tag -d $1
git push origin :refs/tags/$1