Version Control System (VCS)

Mainly here you will find tips and notes about Git, since it is the most popular and extended VCS at the time.

Tags

Git supports two types of tags: lightweight and annotated.

A lightweight tag is very much like a branch that does not change — it is just a pointer to a specific commit.

Annotated tags, however, are stored as full objects in the Git database. They are checksummed, contain the tagger name, email, and date; have a tagging message; and can be signed and verified with GNU Privacy Guard (GPG).

List Tags

Type git tag (optional -l or --list):

$ git tag
v1.0
v2.0

Create Annotated Tags

The easiest way is to specify -a when you run the tag command:

$ git tag -a v1.0.0 -m "Version 1.0.0"
$ git tag
v0.1.0
v1.0.0

Create Lightweigh Tags

Just provide a tag name without a parameter:

$ git tag v1.0.0
$ git tag
v0.1
v1.0.0

Show Tag

The git show displays information about a specific tag:

$ git show v1.0.0

Delete Local Tag

Use the git tag command with the -d option:

$ git tag -d v1.0.0
Deleted tag 'v1.0.0' (was 808b598)

Delete Remote Tag

Use the git push command with the –delete option and specify the tag name:

$ git push --delete origin v1.0.0

To https://github.com/android10/repo.git
 - [deleted]         v1.0.0