GitHub Common Directives-tag

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.