16 lines
208 B
Bash
16 lines
208 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# Creates a new tag on the current branch
|
||
|
#
|
||
|
|
||
|
if [ $# -ne 1 ];
|
||
|
then
|
||
|
echo "Usage: tag.sh <tag name>"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
git tag -d $1
|
||
|
git push origin ":refs/tags/"$1
|
||
|
git tag $1
|
||
|
git push origin $1
|