{"id":4112,"date":"2020-09-18T07:42:31","date_gmt":"2020-09-18T07:42:31","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4112"},"modified":"2024-08-09T06:12:22","modified_gmt":"2024-08-09T06:12:22","slug":"how-to-create-a-tag-on-github","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-create-a-tag-on-github\/","title":{"rendered":"How to create a tag on GitHub?"},"content":{"rendered":"<h2>How to create a tag on GitHub?<\/h2>\n<p>A tag is a fixed set of automation code files for an automation framework. We can create tags to identify and return to a specific commit in the automation code. Let&#8217;s see how to create a tag using GitHub.<\/p>\n<h3>Create a Tag<\/h3>\n<p>We can create tags using the Git bash command line or using the GitHub website.<\/p>\n<pre>hp@LAPTOP-3NKORD70 MINGW64 ~\/SampleProject (master)\r\n        $ git tag v1.5\r\n\r\nhp@LAPTOP-3NKORD70 MINGW64 ~\/SampleProject (master)\r\n$ git push origin --tags\r\n\r\nTotal 0 (delta 0), reused 0 (delta 0), pack-reused 0\r\nTo https:\/\/github.com\/yskumar007\/SampleProject.git\r\n * [new tag] v1.5 -&gt; v1.5<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4128\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Git-Tags-.png\" alt=\"Git Tags \" width=\"1920\" height=\"897\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Git-Tags-.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Git-Tags--300x140.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Git-Tags--1024x478.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Git-Tags--768x359.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Git-Tags--1536x718.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>We can use <strong>-a option<\/strong> to create Annotated tags. Annotated tags contain more information than light-weighted tags.<\/p>\n<p>We can create a tag on GitHub using the draft new release button.<\/p>\n<ul>\n<li>Click <strong>Releases<\/strong> or <strong>Latest release<\/strong>.<\/li>\n<li>Click on <strong>Draft a new release<\/strong><\/li>\n<li>Add the version number for the release.<\/li>\n<li>Add other details and click on <strong>Publish release.<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4134\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Draft-a-new-release.png\" alt=\"\" width=\"1920\" height=\"616\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Draft-a-new-release.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Draft-a-new-release-300x96.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Draft-a-new-release-1024x329.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Draft-a-new-release-768x246.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Draft-a-new-release-1536x493.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h3><\/h3>\n<h3>Tagging suggestions<\/h3>\n<p>It\u2019s common practice to prefix the tags with version names with the letter\u00a0 v. Some examples of good tag names are:<\/p>\n<p>v1.5 or v.1.5.2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to create a tag on GitHub? A tag is a fixed set of automation code files for an automation framework. We can create tags to identify and return to a specific commit in the automation code. Let&#8217;s see how to create a tag using GitHub. Create a Tag We can create tags using the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-4112","post","type-post","status-publish","format-standard","hentry","category-git","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=4112"}],"version-history":[{"count":7,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4112\/revisions"}],"predecessor-version":[{"id":23636,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4112\/revisions\/23636"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}