Taggen mit Git

18. November 2012 / Bash / git

×Info: This post is older than 2 years! Displayed information may be outdated!

Meilensteine und fertige Zwischenversionen sollte man der Übersichtlichkeit halber taggen.

Die Basics

# list tags
git tag

# show tags
git show <tagname>

# create annotated tags
git tag -a <tagname> -m "comment"

# example
git tag -a v1.0 -m "stable release 1.0"

# push tag to remote
git push origin <tagname>

# oder
git push --tags

# tag lokal löschen
git tag -d <tagname>

# tag remote löschen
git tag -d <tagname>
git push origin :refs/tags/<tagname>