10

Git Tag Mini Cheat Sheet

 3 years ago
source link: https://www.devroom.io/2009/09/04/git-tag-mini-cheat-sheet/?utm_campaign=Feed%3A+ariejan+%28ariejan%7Cdevroom.io%29
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Git Tag Mini Cheat Sheet

Posted: 2009-09-04 - Last updated: 2019-06-05

Tagged git cheat sheet tags

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.

My site is free of ads and trackers. I record privacy-respecting usage statistics with Fathom.

Was this post helpful to you? Why not ☕ Buy me a coffee

Copyright © 1999-2020 Ariejan de Vroom <[email protected]>

Live now; make now always the most precious time. Now will never come again.
    – Jean-Luc Picard


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK