How to create a new tag version in GitHub?

You can create a new tag version in GitHub using either the git command line or GitHub UI.

Creating tags from the command line:

If you want to include a description with your tag, add -a to create an annotated tag:

This will create a local tag with the current state of the branch you are on. When pushing to your remote repo, tags are NOT included by default. You will need to explicitly say that you want to push your tags to your remote repo:

Creating tags from the GitHub UI:

Step 1: Log in to GitHub and navigate to the repository where you want to create the tag.

Step 2: In the “code” tab, click on “tag” and then click “Create a new release”.

Step 3: Select the “branch” or “commit” and provide the tag name and finally click “Publish release” to create a new tag version.

Leave a Reply