Onur Özgür ÖZKAN

Php, Ruby, Kebab, Git Geek

Git Tagging

Most VCS has the ability to ‘tag’ specific points in history. Generally people use this to mark release point (‘v0.1.0.dev1). I try to show you some tagging command here.

Listing Tags

1
2
3
$ git tag
v0.1.0.dev1
v0.1.0.dev2

If you are interested in looking v0.1.0 serias, you can run

1
2
3
$ git tag v0.1.0.*
v0.1.0.dev1
v0.1.0.dev2

Creating Tags

1
2
3
4
5
$ git tag v0.1.0.dev3
$ git tag
v0.1.0.dev1
v0.1.0.dev2
v0.1.0.dev3

Sharing tags

1
$ git push --tags

Delete a tag

1
2
$ git tag -d v0.1.0.dev3
Deleted tag '0.1.0.dev3' (was 088fb93)

If you want to delete tag at remote repo.

1
2
$ git push origin :refs/tags/0.1.0.dev3
 - [deleted]         0.1.0.dev1

Best regards.