A Tale of Two Git Tags

By: Johnathon Wright on: August 26, 2009

Git's documentation is pretty lacking. I was looking for information about git's tags and found a fantastic explaination-by-demonstration at RockStarProgrammer.org (not sure how they got what should have been my domain.)

"Git Tag does wrong thing by default":http://www.rockstarprogrammer.org/post/2008/oct/16/git-tag-does-wrong-thing-default/

I'm not sure I agree with his conclusion that git 'does the wrong thing' by default, but the example is pretty clear.

git tag tag_name - names the most recent commit ( an object in git ) git tag -a - creates a tag object and names it git tag -s - creates a tag object, names it, and signs it


Just checking that you are human. What would be the result of this code?

a = 3*(4/2); b = 1; a+b