Skip to main content

Git Tag Mini Cheat Sheet

·70 words·1 min· ·
Git Cheat Sheet Tags
Ariejan de Vroom
Author
Ariejan de Vroom
Jack of all Trades, Professional Software Craftsman

Just as a kind of mini cheat sheet for using git tags:

Adding a tag:

  • git tag tag_name
  • git tag
    Should show your new tag.
  • git push origin --tags or git push origin :tag_name
    Because git push doesn't push tags.

Removing a tag:

  • git tag -d tag_name
  • git tag
    Should no longer show your tag.
  • git push origin :refs/tags/tag_name
    Because git push --tags doesn't push deleted tags.

Hope that helps.

Related

Speaking at Rails Underground
·111 words·1 min
General Ruby Rails Git Rails-Underground Speaking
Best Practice - The Git Development Cycle
·318 words·2 mins
General Git Rebase Merge Branch Svn Best-Practice
How To Start A Rails Edge App The Easy Way
·432 words·3 mins
General RubyOnRails Rails Git Ror Edge Submodule