<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Untitled Publication]]></title><description><![CDATA[Untitled Publication]]></description><link>https://blog.martinhlavacek.cz</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 19:01:25 GMT</lastBuildDate><atom:link href="https://blog.martinhlavacek.cz/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to easily create git tag?]]></title><description><![CDATA[When I began work on my first npm package, so I had problem how to solved release, change log, compare versions etc. Best way is tag.
Here I don't write theory about git tag, but I want to show minimum commands what you need for this.
Create tag
this...]]></description><link>https://blog.martinhlavacek.cz/how-to-easily-create-git-tag</link><guid isPermaLink="true">https://blog.martinhlavacek.cz/how-to-easily-create-git-tag</guid><category><![CDATA[Git]]></category><dc:creator><![CDATA[Martin Hlavacek]]></dc:creator><pubDate>Fri, 10 May 2019 19:56:33 GMT</pubDate><content:encoded><![CDATA[<p>When I began work on my first <strong>npm package</strong>, so I had problem how to solved release, change log, compare versions etc. Best way is tag.</p>
<p>Here I don&#39;t write theory about <strong>git tag</strong>, but I want to show minimum commands what you need for this.</p>
<h2 id="create-tag">Create tag</h2>
<p>this command create new tag <em>v2.1.0</em> with message</p>
<pre><code class="lang-bash">git tag <span class="hljs-_">-a</span> v2.1.0 -m <span class="hljs-string">"xyz feature is released in this tag."</span>
</code></pre>
<p>or you can use sort command (without message)</p>
<pre><code class="lang-bash">git tag v2.1.0
</code></pre>
<p>but this command create tag only in local repository.</p>
<h2 id="publish-tags-to-remote-repository">Publish tags to remote repository</h2>
<p>If I want to publish tag(s) on remote repository, then I have to push tag(s)
I use only one command a this command is pushing all new tags from my local repository to remote.</p>
<pre><code class="lang-bash">git push --tags
</code></pre>
<h2 id="list-of-tags">List of tags</h2>
<p>Last thing is display list of all tags </p>
<pre><code class="lang-bash">git tag
</code></pre>
<p>So this is all how to easily create tags.</p>
]]></content:encoded></item></channel></rss>