Programming, Projects, Technology

Git tagging.

Quick cheat sheet for referencing. Tags are a way to bookmark a particular version of your git repository for future referencing. Use them to bookmark stable and dev versions of your project.

$ git tag -l
$ git tag -a v1.1
$ git tag -a v1.0 
$ git push --tags origin

Add a tag with inline message (no editor):

$ git tag -a v1.1 -m 'this is version 1.1'

Remove a tag:

$ git tag -d v1.1

You can also push tags with a regular push with the tags argument:

$ git push -u origin master --tags

Done!