Skip to content

Instantly share code, notes, and snippets.

@farskid
Forked from cliffparnitzky/create_github_tag.sh
Created October 16, 2018 03:49
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 farskid/424ad19aea324e40f7901d47cee1a090 to your computer and use it in GitHub Desktop.
Save farskid/424ad19aea324e40f7901d47cee1a090 to your computer and use it in GitHub Desktop.
Simple way to create a tag via git shell and push it to repo
# creat a tag (more infos at: http://git-scm.com/book/de/ch2-12.html)
git tag -a 1.0.0 -m "Version 1.0.0"
git push origin 1.0.0
git tag -a 1.0.0.alpha1 -m "Version 1.0.0 alpha1"
git push origin 1.0.0.alpha1
# delete a tag
git tag -d 1.0.0
git push origin :refs/tags/1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment