From f7e3334312e7e891825bd9cd77ba445df81c58ff Mon Sep 17 00:00:00 2001 From: johny english Date: Sun, 27 Sep 2020 22:30:08 +0200 Subject: [PATCH] script to tag and push --- scripts/tagit.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/tagit.sh b/scripts/tagit.sh index 9db1549..8435d7f 100755 --- a/scripts/tagit.sh +++ b/scripts/tagit.sh @@ -7,4 +7,7 @@ git tag echo "********************************" echo "input a tag ie: v1.a.b" read TAG -echo "will tag to ${TAG}" \ No newline at end of file +echo "will tag to ${TAG}" +DATE=$(date --iso-8601) +git tag -a "${TAG}" -m "${DATE}" +git push --tags