Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy should I care about lightweight vs. annotated tags?
    primarykey
    data
    text
    <p>I switched from Subversion to Git as my day-to-day VCS last year and am still trying to grasp the finer points of "Git-think".</p> <p>The one which has been bothering me lately is "lightweight" vs. annotated vs. signed tags. It seems pretty universally accepted that annotated tags are superior to lightweight tags for all real uses, but the explanations I've found for why that's the case always seem to boil down to either <a href="https://stackoverflow.com/questions/4092640/in-what-circumstances-should-i-add-the-a-flag-to-the-git-tag-command">"because best practices"</a> or <a href="http://www.rockstarprogrammer.org/post/2008/oct/16/git-tag-does-wrong-thing-default/" rel="noreferrer">"because they're different"</a>. Unfortunately, those are very unsatisfying arguments without knowing <em>why</em> it's best practices or how those differences are <em>relevant</em> to my Git usage.</p> <p>When I first switched to Git, lightweight tags seemed to be the best thing since sliced bread; I could just point at a commit and say "that was 1.0". I'm having trouble grasping how a tag could ever need to be more than that, but I certainly can't believe that the Git experts of the world prefer annotated tags arbitrarily! So what's all the hubbub about?</p> <p><em>(Bonus points: Why would I ever need to sign a tag?)</em></p> <p><strong>EDIT</strong></p> <p>I've been <a href="https://stackoverflow.com/questions/4971746/why-should-i-care-about-lightweight-vs-annotated-tags/4971817#4971817">successfully convinced</a> that annotated tags are a Good Thing — knowing who tagged and when is important! As a follow-up, any advice on good tag annotations? Both <code>git tag -am "tagging 1.0" 1.0</code> and trying to summarize the commit log since the previous tag feel like losing strategies.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload