Created
December 14, 2020 14:26
-
-
Save antoniorrm/df445ddcb8724265eff70738aa35764b to your computer and use it in GitHub Desktop.
Example for create, upload and delete Tag in git
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
# Create tag | |
git tag -a 12345 -m "my version 12345" | |
git tag -a 12345 | |
# Tag push to origin | |
git push --follow-tags | |
# delete local tag '12345' | |
git tag -d 12345 | |
# alternative approach | |
# remote | |
git push --delete origin tagName | |
# local | |
git tag -d tagName | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment