Explorar el Código

Set version to 1.0

Spiros Ioannou hace 9 años
padre
commit
ec4be86182
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      gittag.sh

+ 13 - 0
gittag.sh

@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ $# -lt 1 ]; then
+   echo "Usage: gittag <tagname>" && exit 1
+fi
+
+#echo $1 > VERSION
+#git add VERSION
+git commit -m "Set version to $1"
+git push origin
+git tag -a $1 -m "Tagged version:$1"
+git push --tags
+