Tag:
Like most VCS, Git can tag a version of a point in time. People often do this when they publish a software version (such as v1.0, etc.). In this section, we will learn how to list all available tags, how to create new labels, and the differences between different types of labels.
The list of labeled commands is straightforward and can be run directly git tag :
$ git tag 2.0. 0 . BETA42.0. 0 . Beta52.0. 0. Beta6
The labels shown are arranged alphabetically, so the label's order does not indicate the severity of the importance.
We can list eligible tags in a specific search mode. There are more than dozens of tags in Git's own project repository, and if you're interested in only the version of the 2.0.0 series, you can run the following command:
' 2.0.0* ' 2.0. 0 . BETA42.0. 0 . Beta52.0. 0. Beta6
New tag, you can specify a version to create a new tag
2.1. 9 ' Make tag 2.1.9 '
Share Tags:
2.1. 9
If you want to push all locally added tags at once, you can use the --tags options:
$ GIT push origin--tags
GitHub Common Directives-tag