<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git tags on Nerdsid.com</title><link>https://nerdsid.com/tags/git-tags/</link><description>Recent content in Git tags on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 28 Oct 2022 07:32:28 +0530</lastBuildDate><atom:link href="https://nerdsid.com/tags/git-tags/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Delete Git Local and Remote Tags</title><link>https://nerdsid.com/posts/how-to-delete-git-local-and-remote-tags/</link><pubDate>Fri, 28 Oct 2022 07:32:28 +0530</pubDate><guid>https://nerdsid.com/posts/how-to-delete-git-local-and-remote-tags/</guid><description>&lt;p>You can safely delete a git tag if you created one unintentionally.&lt;/p>
&lt;h2 id="delete-git-tag-from-local-repository">Delete git tag from local repository&lt;/h2>
&lt;p>Use the &lt;code>git tag&lt;/code> command with the &amp;ldquo;-d&amp;rdquo; option to remove a tag from the local repository.&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">git tag -d &amp;lt;tag_name&amp;gt;&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>Let&amp;rsquo;s say you want to delete tag &lt;code>v1.2.3&lt;/code>, then the following command can be used.&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">git tag -d v1.2.3&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>After executing this command, you should see a similar output as below.&lt;/p></description></item></channel></rss>