gittag.sh 223 B

12345678910111213
  1. #!/bin/bash
  2. if [ $# -lt 1 ]; then
  3. echo "Usage: gittag <tagname>" && exit 1
  4. fi
  5. #echo $1 > VERSION
  6. #git add VERSION
  7. git commit -m "Set version to $1"
  8. git push origin
  9. git tag -a $1 -m "Tagged version:$1"
  10. git push --tags