You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/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
|
|
|