Tagging is a way to manage the source code. In Git, a tag is a particular point in the repository’s history. Tags can be created in a local repository or remote repository. Local tags are stored in the user’s system, and remote tags are located on GitHub remote server. Moreover, you can view local or remote tags whenever you want.
This article will illustrate:
How to View Tags of a Particular Remote Repository on GitHub?
To view the remote tags on GitHub, first, open GitHub and redirect to the specified remote repository. Then, click on the below-highlighted “tags” option:
Upon doing so, the remote tags will be displayed. Here, you can see that the remote repository contains four tags, such as “v2.0”, “v1.0”, “v4.0”, and “v3.0”:
How to View Tags of a Particular Remote Repository on Git?
To view the tags of a specific remote repository on Git, the “git ls-remote –tags <remote-URL>” command is used.
First, navigate to the root directory:
Then, run the below-provided command along with the desired remote repository URL:
The below output displays the tags of the specified remote repository:
That was all about viewing remote tags.
Conclusion
The remote tags can be viewed either on GitHub or Git. To see the remote tags on GitHub, first, open GitHub and switch to the particular remote repository. Then, click on the “tags” option and tags will be displayed. Furthermore, to view the tags of a specific remote repository on Git, first, navigate to the root directory and run the “git ls-remote –tags <remote-URL>” command. This article illustrated the methods to see remote tags.