mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Added git-delete-tag
This commit is contained in:
parent
4dc99404ac
commit
0ed2a49b3c
2
Makefile
2
Makefile
|
|
@ -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
|
||||
|
|
@ -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
5
bin/git-delete-tag
Normal 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
|
||||
Loading…
Reference in a new issue