Created
April 21, 2020 08:05
-
-
Save gsscoder/3b924ce1d15e0f216e229fb9b5337afc to your computer and use it in GitHub Desktop.
Two simple BASH scripts to add/remove Git tags from local/remote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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