Skip to content

Instantly share code, notes, and snippets.

@jrgcubano
Forked from cliffparnitzky/create_github_tag.sh
Created September 23, 2017 00:19
Show Gist options
  • Save jrgcubano/63a0d3f25f302506f048854ef1d0b8d0 to your computer and use it in GitHub Desktop.
Save jrgcubano/63a0d3f25f302506f048854ef1d0b8d0 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