Skip to content

Instantly share code, notes, and snippets.

@antoniorrm
Created December 14, 2020 14:26
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 antoniorrm/df445ddcb8724265eff70738aa35764b to your computer and use it in GitHub Desktop.
Save antoniorrm/df445ddcb8724265eff70738aa35764b to your computer and use it in GitHub Desktop.
Example for create, upload and delete Tag in git
# 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