tj.git-extras/bin/git-release

11 lines
202 B
Bash
Executable file

#!/bin/sh
tagname="$1"
test -z "$tagname" && echo "tag required" && exit 1
echo "... releasing $tagname"
git tag -a "$tagname" -m "Release $tagname" \
&& git push --tags \
&& echo "... complete"