Git tag management details

Source: Internet
Author: User

Git tag management details

Outline:

I. Preface

Ii. Tag Overview

3. Create tags

Iv. Manage tags

V. Summary

Note: CentOS 5.5 x86_64, Git server version: git version 1.8.2.1, and Client version: git version 1.9.2.msysgit.0. Download all the software here: http://msysgit.github.io /.

I. Preface

In the previous article, we explained Git branch management. If you are not clear about it, you can view the previous blog. In this blog, we will mainly discuss Git tag management. By the way, let's make a brief summary here. In the previous blog, we explained how to set up a Git server, manage a Git local repository, manage a Git remote repository, and manage Git branches. In this article, we talked about Git tag management. Basically, after learning the above content, you can work smoothly, hey. I will write another article on GitHub. If you have time, summarize the content of the Git global configuration file. If you don't have time, just google it. Let's talk about Git tag management.

GitHub Tutorials:

GitHub tutorials

Git tag management details

Git branch management

Git remote repository details

Git local Repository (Repository) Details

Git server setup and Client installation

Git Overview

Ii. Tag Overview

Generally, when we release a new version to an online server, a tag will be added to the version library. Then, we confirm that a version will be released online. We can view the tag version at any time. That is to say, the tag is actually a snapshot in the version library. To put it simply, the label refers to the injection pointing to a commit, which is similar to the branch point we mentioned earlier, but the difference is that the branch is variable while the label is immutable. Therefore, we can quickly create and delete tags. Now, let's demonstrate how to create a tag.

3. Create tags

Creating a tag in Git is simple to use the git tag command, but note that we usually tag and publish the tag on the master. For example:

Here, the label is applied to the latest submitted Commit, so we don't want to apply the label to the latest Commit. What should we do? For example:

We first use the git log command to view the committed Commit id, and then use the git tag Commit id to tag it. It's easy, hey. Next, let's take a look at the tag details. For example,

Next, we will create a label with instructions. Use-a to specify the label name and-m to specify the description. For example,

Now, I believe you will create tags. Next, let's explain how to manage tags.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.