Skip to main content

Command Palette

Search for a command to run...

How to easily create git tag?

Published
0 min read

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 command create new tag v2.1.0 with message

git tag -a v2.1.0 -m "xyz feature is released in this tag."

or you can use sort command (without message)

git tag v2.1.0

but this command create tag only in local repository.

Publish tags to remote repository

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.

git push --tags

List of tags

Last thing is display list of all tags

git tag

So this is all how to easily create tags.

106 views
S

Nice tip! Unfortunately, we allow only English content in the Hashnode community. So, I have temporarily unlisted your post -- this means your blog post will appear only on your blog and will be excluded from Hashnode users' feeds. Any chance you can translate your post to English? :)

M

Hi,

I can translate this post but why I cannot to use hashnode for czech community? English is ok but if czech people have change to read czech articles then it is better. On Meduim I can write in my natural language. Ok English community is common and I understand it. If it's not possible to write in my langugage is here any way how to build czech community by hashnode? Thanks Martin

S

Hey Martin, You can definitely publish in Czech! It's just that other Hashnode users don't understand Czech and probably won't get any value out of it. That's the reason we have enabled an option in the editor (https://hashnode.com/create/story) which lets you exclude certain posts from the Hashnode community while keeping them on your blog. So, you can keep blogging in Czech and start building your audience. It's just that the posts won't pop up in the Hashnode users' feeds.

In the future, we can auto-translate the posts into English for our English speaking audience and maybe even build a Czech community inside Hashnode. :)

3
M

Sandeep Panda amazing thank for this. Hashnode looks very good blogging platform I want to use hashnode for building czech community. Ok I will have problem with hashnode feeds but maybe in future we will have our feeds:) Thanks. Btw I translated my first post to English:) Next posts will be in Czech. Sorry:)

M

Sandeep Panda Can I have question about contribute on Hashnode? For example support translate post from non english to english?

S

Martin Hlavacek Thanks! You mean do we allow content that has been translated from a different language? If that is the question, yes we do allow such content. Just be sure to enter the original article URL while publishing the post. :)

1