I hope that the last post on "Git Branches" from my "Tutorials on Git Basics" was easy for you to understand. Today we are going to discuss on another topic "Git Tags", which I hope, will help you to easily work with Git Bash commands.
Let's continue learning this today with the commands that you need to know. Stay tuned to get more posts on this topic.
Like most other source control tools, Git also has the ability to tag or bookmark specific points in history as being important. Typically people use this functionality to mark release points. In this post, you’ll learn how to list the available tags, how to create new tags, what the different types of tags and how to push tags to remote.
$ git tag
$ git tag -l <tag-pattern>
$ git show <tag-name>
$ git tag <tag-name>
$ git tag -a <tag-name> -m <tag-message>
$ git tag -a <tag-name> <commit-checksome>
$ git push origin <tag-name>
$ git push origin --tags
$ git checkout -b <branch-name> <tag-name>
Was this post useful? If you came to this page by searching online about git basics, please have a look into my other blog posts. Subscribe to the RSS feed or the email newsletter to keep yourself updated. If you have any queries, you can either ping me on Twitter or drop a line below in the comments section. Have a great day!