In GIT, we can create two types of Tags.
Lightweight Tag: A lightweight tag is a reference that never moves. We can make a lightweight tag by running a command similar to following:
$ git update-ref refs/tags/v1.0 dad0dab538c970e37ea1e769cbbde608743bc96d
Annotated Tag: An annotated tag is more complex object in GIT. When we create an annotated tag, GIT creates a tag object and writes a reference to point to it rather than directly to the commit. We can create an annotated tag as follows:
$ git tag -a v1.1 1d410eabc13591cb07496601ebc7c059dd55bfe9 -m ‘test tag’Read the full book at www.amazon.com