Chris Mendez in Git, For Developers

Git: Using Tags to mark milestones

Tags are useful for recording milestones in your code. It's a stable point in your code.

List Tags

git tag  

Create Tags

Create a Basic Tag

git tag name_of_tag  

Annotated Tag

Leave an optional message or annotation with the tag.

git tag -a name_of_annotated_tag  

Verified Tag

Verified tags are also called signed tags. they are "Official Commits" and requires a message.

git tag -s name_of_verified_tag  

Delete Tags

git tag -d name_of_tag  

Publish Tags

You must explicitly push tags to Github.

git push --tags