Git/hacks: Difference between revisions

adds git tag info
add references
Line 36: Line 36:


== Tags ==
== Tags ==
With git, you can just tag something with <code>git tag foo</code>.  This produces a 'lightweight' tag.  Use "annotated tags" whenever you want to know '''when''' something was tagged and '''who''' did it.  Pass an empty message if you really don't care or need extra annotation.
With git, you can just tag something with <code>git tag foo</code>.  This produces a 'lightweight' tag <ref>[https://stackoverflow.com/questions/21031201/how-can-i-list-all-lightweight-tags how can I list all the lightweight tags]</ref>.  Use "annotated tags" whenever you want to know '''when''' something was tagged and '''who''' did it.  Pass an empty message if you really don't care or need extra annotation.
<source lang="bash">
<source lang="bash">
git tag -am '' 'REL-1.0-alpha'
git tag -am '' 'REL-1.0-alpha'
</source>
</source>
{{References}}
[[Category:Development]]
[[Category:Development]]