Skip to content
Tags

tagging in git

June 9, 2011

Just pasting some conversations around tagging:

to add a tag 0.1.1

>git tag -a '0.1.1' -m '0.1.1'

and then push it

>git push --tags

gagan: think of a tag as a named commit normally commits just have long SHA1 references you can give a commit a name and a description and some other metadata if you want the first adds the tag to the current HEAD the latter pushes all your tags tagging is a local operation and then you push your tags.

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: