If you want to create Git tags, then you should know that there are two types of Git tags:
Annotated tags Lightweight tags
Annotated tags are tags with a description while lightweight tags don’t include any description. We will see how to create both of them one by one.
Why should you create tags or what are the benefits of tags?
When you want to put a part of code or code point for future use reference. The tag will help you in identifying that part. While creating a stable version of your code or release point.
Now let’s see how you can create tags. Next, you can run the “git tag” command to see if you have successfully created the tag or not. This syntax will list all the existing tags. For example: You can even verify your tag by using the following command: This will display all the existing tags with messages.