Skip to content

Instantly share code, notes, and snippets.

@gsscoder
Created April 21, 2020 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsscoder/3b924ce1d15e0f216e229fb9b5337afc to your computer and use it in GitHub Desktop.
Save gsscoder/3b924ce1d15e0f216e229fb9b5337afc to your computer and use it in GitHub Desktop.
Two simple BASH scripts to add/remove Git tags from local/remote
# addtag.sh
###########
#!/bin/sh
git tag -a v$1 -m "Version $1" && git push origin --follow-tags
# rmtag.sh
##########
#!/bin/sh
git tag -d v$1 && git push origin -d v$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment