Tag

Still mourning the loss of his email code, Harry creates a tag so he can more easily access it later.

lottery harry$ git log
...
commit 3e047651520a0232dcb7385d79962e04d529934b
Author: Harry <harry@futilisoft.com>
Date:   Sat Jun 11 16:17:11 2011 +0200

    add libvmime so we can do the mail reader feature
...

lottery harry$ git tag just_before_sally_deleted_my_email_code 3e047651

lottery harry$ git tag
just_before_sally_deleted_my_email_code 

lottery harry$ git log --decorate
commit 3cdcf5424d79aeebd28fd40e54465914d8a4a73d (HEAD, origin/master, master)
Author: Sally <sally@futilisoft.com>
Date:   Sat Jun 11 16:23:16 2011 +0200

    no mail reader until 2.0

commit 3e047651520a0232dcb7385d79962e04d529934b (tag: just_before_sally_...
Author: Harry <harry@futilisoft.com>
Date:   Sat Jun 11 16:17:11 2011 +0200

    add libvmime so we can do the mail reader feature
...

Harry wants to share his misery, so he pushes the tag.

lottery harry$ git push origin tag just_before_sally_deleted_my_email_code
Counting objects: 45, done.
Compressing objects: 100% (29/29), done.
Writing objects: 100% (45/45), 4.19 KiB, done.
Total 45 (delta 9), reused 0 (delta 0)
Unpacking objects: 100% (45/45), done.
To http://server.futilisoft.com:8000/lottery
 * [new tag]         just_before_sally_deleted_my_email_code -> just_before_sally_...

Sally sees Harry gloating in the company chat room about his beloved tag, so she wants to see what he did.

lottery sally$ git pull
From http://server.futilisoft.com:8000/lottery
 * [new tag]         just_before_sally_deleted_my_email_code -> just_before_sally_...
Already up-to-date.

Sally sees Harry’s tag and rolls her eyes. Fine. Whatever.