{"id":17432,"date":"2020-05-25T22:46:02","date_gmt":"2020-05-26T05:46:02","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=17432"},"modified":"2023-12-01T03:03:01","modified_gmt":"2023-12-01T11:03:01","slug":"git-tag","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/git-tag\/","title":{"rendered":"Git Tag"},"content":{"rendered":"\n<p>Tagging is a feature used to keep track of specific points in a Git repository\u2019s history.<br><\/p>\n\n\n\n<p>Over time, when you\u2019re working with a Git repository, you\u2019ll make a large number of changes to your codebase. In Git, commits are used to keep track of individual changes.<br><\/p>\n\n\n\n<p>However, if you want to capture a point in the history of your repository such as a version, then you\u2019ll want to use the Git tagging feature.<br><\/p>\n\n\n\n<p>This tutorial will discuss, with examples, the basics of tagging and how to use the git tag command to work with tags in a Git repository. By the end of reading this tutorial, you\u2019ll be an expert at working with tags in Git.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Git Tagging<\/h2>\n\n\n\n<p>Tags are references (refs) which point to a specific part of a Git repository\u2019s history.<br><\/p>\n\n\n\n<p>Tags are generally used by developers to capture a specific point in the history of a repo to create a version release. For instance, when a developer is ready to launch a new version of a project, they may create a tag for the project.<br><\/p>\n\n\n\n<p>In essence, tags are branches that do not change. After you create a tag, there will be no more commits added to the history of the tag. Instead, the tag will store a snapshot of how the repository appeared when the tag was added.<br><\/p>\n\n\n\n<p>There are two different types of tags supported in Git. These are:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Annotated tags. These are tags that are stored as full objects in the Git database.<\/li>\n\n\n\n<li>Lightweight tags. These are tags that are a name and a pointer to a commit.<\/li>\n<\/ul>\n\n\n\n<p>Now we\u2019ve discussed the basics of Git tagging, explore how you can work with tags in Git.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create a Tag<\/h2>\n\n\n\n<p>Before you can start working with tags in Git, you need to create a tag. The syntax for creating a tag in Git is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag &lt;name&gt;<\/pre><\/div>\n\n\n\n<p>The \u201cname\u201d parameter refers to the name of the tag you want to create. Because tagging is usually used to track versions of a project, you may want to use a name like \u201cv1.2\u201d or \u201cbeta-v0.9\u201d for a tag.<br><\/p>\n\n\n\n<p>The tag you create will be applied to the current commit you are on in your repository.<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Annotated Tags<\/h3>\n\n\n\n<p>An annotated tag is a tag which stores a full object in the Git database. When you create an annotated tag, metadata such as the name of the person who created the tag, their email, and the date on which the tag was created will be stored.<br><\/p>\n\n\n\n<p>In addition, annotated tags are stored with a message for the tag. Generally speaking, annotated tags are preferred over lightweight tags because the metadata stored by annotated tags can have a number of uses down the line.<br><\/p>\n\n\n\n<p>For instance, if you want to track who has been responsible for versioning over time, you\u2019ll need access to the metadata stored by an annotated tag.<br><\/p>\n\n\n\n<p>Here\u2019s the syntax for creating an annotated tag in Git:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag -a &lt;name&gt;<\/pre><\/div>\n\n\n\n<p>The -a flag is used to tell Git to create an annotated tag. The \u201cname\u201d parameter is the name of the tag we want to create.<br><\/p>\n\n\n\n<p>After we run this command, the system-default text editor will open and ask us to insert a message for our annotated tag. This happens because, as we discussed earlier, annotated tags are stored with a message.<br><\/p>\n\n\n\n<p>Alternatively, you can specify the message with which a tag will be created directly. You can do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag -a &lt;name&gt; -m &lt;message&gt;<\/pre><\/div>\n\n\n\n<p>The -m tag is used to add a message to an annotated tag. Suppose we wanted to create a tag called v1.9 with the message \u201cversion 1.9\u201d. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag -a v1.9 -m \"version 1.9\"<\/pre><\/div>\n\n\n\n<p>When we run this command, a tag called v1.9 will be created with the accompanying message \u201cversion 1.9\u201d.<br><\/p>\n\n\n\n<p>Running this command is more convenient than using git tag without a message, because this way allows us to specify a commit message directly, without having to type one into the default text editor which appears when you don\u2019t specify a commit message.<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lightweight Tags<\/h3>\n\n\n\n<p>To create a lightweight tag, you should use the standard git tag syntax we discussed earlier. Suppose you want to create a lightweight tag called \u201cv1.9.1\u201d. You could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag v1.9.1<\/pre><\/div>\n\n\n\n<p>This command will create a lightweight tag called v1.9.1. When you create a lightweight tag, you do not need to specify a tag message. Instead, a new tag checksum will be created and stored in the project\u2019s .git folder.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">List a Project\u2019s Tags<\/h2>\n\n\n\n<p>When you\u2019re working on a large project, you may have a number of tagged versions of your repository. To retrieve a list of tags stored with a project, you can use the following command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag<\/pre><\/div>\n\n\n\n<p>This command returns a list of tags. Here\u2019s an example output from this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>v1.9.1\nv1.9.0\nv1.8.11\nv1.8.10\nv1.8.9\n...<\/pre><\/div>\n\n\n\n<p>In addition, the -l flag can be used to filter out the tags used with a project. For instance, if you want to retrieve a list of every tag that starts with \u201cv1.8\u201d, you could use this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag -l v1.8*<\/pre><\/div>\n\n\n\n<p>In our command, we have specified an -l flag, followed by \u201cv1.8*\u201d. This instructs Git to retrieve a list of all tags that start with v1.8. The asterisk (*) denotes that the tags to be returned can include any characters after \u201cv1.8\u201d.<br><\/p>\n\n\n\n<p>Here\u2019s an example output from this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>v1.8.11\nv1.8.10\nv1.8.9\nv1.8.8\n...<\/pre><\/div>\n\n\n\n<p>As you can see, all the tags returned start with \u201cv1.8\u201d.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Checkout a Tag<\/h2>\n\n\n\n<p>The git checkout command can be used to view the state of a repository in a commit with a specific tag. For instance, suppose you wanted to view your repository when it was in v1.1. You could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git checkout v1.1<\/pre><\/div>\n\n\n\n<p>This command moves the repository into a \u201cdetached HEAD\u201d state, which means any changes you make will not update the tagged version of the repo. Instead, a new detached commit will be created which will not be associated with any branch.<br><\/p>\n\n\n\n<p>After we run this command, we are able to see how our codebase appeared in the commit which was tagged v1.1.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tag an Old Commit<\/h2>\n\n\n\n<p>In our previous examples, we have discussed how to use the git tag function to add a tag to the current version of git with which you are working. This is because, by default, git tag will create a tag for the HEAD commit (the commit you are currently viewing).<br><\/p>\n\n\n\n<p>However, you can also tag an old commit using the git tag command. You can do so by specifying the reference of a specific commit to which you want to add a tag.<br><\/p>\n\n\n\n<p>Suppose you want to add a tag to the last commit in your repository. To do so, you\u2019ll first need to run git log. This will allow you to retrieve a list of recent commits. Here\u2019s an example of the git log command in action (with the &#8211;pretty=oneline flag, which makes it easy for us to see our commits):<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git log --pretty=oneline<\/pre><\/div>\n\n\n\n<p>Our command returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>8cd29ae5d04abbdbd856d2c2f55f2b82133903e8 Push new logging feature\n2911aae73ed1dd372bcdf8f520b174c3817c818b Initialize logging feature\n9646aa785211f3069ce01177da98e23b7890d859 Fix issue #342<\/pre><\/div>\n\n\n\n<p>Now, suppose we wanted to add a tag to our \u201cFix issue #342\u201d commit. We want this tag to be called \u201cv1.3\u201d. We could add this tag using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag -a v1.3 9646aa785211f3069ce01177da98e23b7890d859<\/pre><\/div>\n\n\n\n<p>This command adds the tag 1.3 to the commit we referenced in our code. In this case, we specified the SHA hash for the commit with the message \u201cFix issue #342\u201d.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Replace Old Tag<\/h2>\n\n\n\n<p>Each commit can only have one tag. If you decide that you want to replace the tag associated with a commit with another tag, you can do so using git tag. However, you must specify the -f (force) option, which will override the existing tag in place<br><\/p>\n\n\n\n<p>Suppose we wanted to add the tag \u201cv1.3.1\u201d to the commit we discussed in our previous example. If we tried to do so without using the -f flag, an error message would appear. To add the tag \u201cv1.3.1\u201d to our previous commit, we could use this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag -a -f v1.3.1 9646aa785211f3069ce01177da98e23b7890d859<\/pre><\/div>\n\n\n\n<p>This command adds the tag \u201cv1.3.1\u201d to our commit and overrides the \u201cv1.3\u201d tag we had earlier.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Delete a Tag<\/h2>\n\n\n\n<p>To delete a tag using git, you can use the -d flag. Suppose we want to delete the tag \u201cv1.3\u201d from our repository. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git tag -d v1.3\ngit tag<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>v1.4\nv1.2\nv1.1<\/pre><\/div>\n\n\n\n<p>The first command deletes the tag v1.3 from our repository. The second command returns a list of tags. As you can see, when we retrieve a list of tags, the tag v1.3 is missing. This is because we deleted the tag using the -d flag.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Tagging is an important feature of Git used by developers to keep track of different versions of a Git repository. Tags can be added to the current commit a developer is viewing, or to an existing commit in a repository.<br><\/p>\n\n\n\n<p>This tutorial discussed, with examples, the basics of tagging in Git and how to use the Git tag command. Now you\u2019re ready to start using the git tag command like a professional developer!<\/p>\n","protected":false},"excerpt":{"rendered":"Tagging is a feature used to keep track of specific points in a Git repository\u2019s history. Over time, when you\u2019re working with a Git repository, you\u2019ll make a large number of changes to your codebase. In Git, commits are used to keep track of individual changes. However, if you want to capture a point in&hellip;","protected":false},"author":240,"featured_media":17433,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17286],"tags":[],"class_list":{"0":"post-17432","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-git"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Git","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Tagging feature in git | Career Karma<\/title>\n<meta name=\"description\" content=\"The git tagging feature is used to capture a point in a repository to create a version release. On Career Karma, learn how to use the git tag command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/git-tag\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Tag\" \/>\n<meta property=\"og:description\" content=\"The git tagging feature is used to capture a point in a repository to create a version release. On Career Karma, learn how to use the git tag command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/git-tag\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-26T05:46:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:03:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Git Tag\",\"datePublished\":\"2020-05-26T05:46:02+00:00\",\"dateModified\":\"2023-12-01T11:03:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/\"},\"wordCount\":1492,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg\",\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/git-tag\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/git-tag\/\",\"name\":\"Tagging feature in git | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg\",\"datePublished\":\"2020-05-26T05:46:02+00:00\",\"dateModified\":\"2023-12-01T11:03:01+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The git tagging feature is used to capture a point in a repository to create a version release. On Career Karma, learn how to use the git tag command.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/git-tag\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/git-tag\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\",\"item\":\"https:\/\/careerkarma.com\/blog\/git\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git Tag\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Tagging feature in git | Career Karma","description":"The git tagging feature is used to capture a point in a repository to create a version release. On Career Karma, learn how to use the git tag command.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/git-tag\/","og_locale":"en_US","og_type":"article","og_title":"Git Tag","og_description":"The git tagging feature is used to capture a point in a repository to create a version release. On Career Karma, learn how to use the git tag command.","og_url":"https:\/\/careerkarma.com\/blog\/git-tag\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-05-26T05:46:02+00:00","article_modified_time":"2023-12-01T11:03:01+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/git-tag\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/git-tag\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Git Tag","datePublished":"2020-05-26T05:46:02+00:00","dateModified":"2023-12-01T11:03:01+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-tag\/"},"wordCount":1492,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-tag\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg","articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/git-tag\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/git-tag\/","url":"https:\/\/careerkarma.com\/blog\/git-tag\/","name":"Tagging feature in git | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-tag\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-tag\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg","datePublished":"2020-05-26T05:46:02+00:00","dateModified":"2023-12-01T11:03:01+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The git tagging feature is used to capture a point in a repository to create a version release. On Career Karma, learn how to use the git tag command.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/git-tag\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/git-tag\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/git-tag\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/code-2620118_1920.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/git-tag\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Git","item":"https:\/\/careerkarma.com\/blog\/git\/"},{"@type":"ListItem","position":3,"name":"Git Tag"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=17432"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17432\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/17433"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=17432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=17432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=17432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}