Git tag - how to create a tag in a GitHub repository?
I have a repository in GitHub and I need to tag it. I tagged in a shell, but on GitHub, it is not showing up. Do I have to do anything else?
The command I used in the shell is:
git tag 2.0
And now when I type git tag it shows:
2.0
So it seems like tags are present, correct?
The repository is https://github.com/yeshu4/website.
How do I make this tag show up on GitHub? Where are my tags?
To solve github create tag, There are two ways to create a tag
From command line
Github’s interface
Let’s see how it can be done
To create a tag on your current branch, run this:
git tag
To describe your tag:
git tag -a
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:
<a href="https://www.janbasktraining.com/blog/git-push-vs-git-push-origin/">git push origin</a> --tags
if you just want to push a single tag:
git push origin Then it will be pushed to the Github using the above commands.
Refer: https://git-scm.com/docs/git-push
Creating tags using Github’s interface.
1. Click on release on your repository
2. Create a new release
3. Give your tag here
4. Then publish those release
Thus you can create a tag from the github interface.