In git repositories we can use tagging functionality to mark a point in history. Usually developers use this feature to mark new release version of their projects. To simply add new tag just use this code:
1 |
$ git tag -l 'v1.1.0' |
It will tag repository with ‘v1.1.0’. We can also use tagging with additional comment:
1 |
$ git tag -a v1.1.0 -m 'release version 1.1.0' |
To list all available tags in history use just:
1 |
$ git tag |