Thursday, September 24, 2009

How to use Git tags


# Lightweight tagging
git tag stable-1 1b2e1d63ff

# Annotated tagging
git tag stable-1 1b2e1d63ff -a -m "This is a explanation of this tag."

# Signed tags
git tag -s -m "Tagging release 2.0" v2.0

# List tags
git tag -l

# Pushing tags to repository
git push origin --tags

refs:
http://ariejan.net/2009/09/05/git-tag-mini-cheat-sheet-regit tag -l -n1visited/
http://book.git-scm.com/3_git_tag.html

No comments:

Blog Archive