# How to easily create git tag?

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
```bash
git tag -a v2.1.0 -m "xyz feature is released in this tag."
```
or you can use sort command (without message)
```bash
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.
```bash
git push --tags
```
## List of tags
Last thing is display list of all tags 
```bash
git tag
```

So this is all how to easily create tags.

