Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Friday, December 2, 2011

Git Tagging

There are two basic tag types, usually called lightweight and annotated. An annotated tag is more substantial and creates an object.

Listing Tags
git tag

Creating Tags
You create an annotated, unsigned tag with a message on a commit using the "git tag" command:
git tag -a r20111202 -m"revision 20111202"

Sharing Tags
By default, the "git push" command will not transfer tags to remote servers. To do so, you have to explicitly add a "--tags" to the "git push" command:
git push --tags

References:
http://learn.github.com/p/tagging.html