mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
This should keep consistent logic among scripts i.e. git-delete-tag should behave the same way as git-delete-branch.
7 lines
134 B
Bash
Executable file
7 lines
134 B
Bash
Executable file
#!/bin/sh
|
|
|
|
tagname=$1
|
|
test -z $tagname && echo "tag required." 1>&2 && exit 1
|
|
git tag -d $tagname
|
|
git push origin :refs/tags/$tagname
|