Will a commit be garbage collected if it's referred to by tag but not by branch?

branch, commit, git, tags

Solution

No, the commit will not be garbage collected. A reference from a tag is sufficient to keep a commit alive.

Problem

I've got an annotated tag referring to a commit (does it matter if it is annotated?) and no branch referring there. Will the commit be garbage collected after some time?

Original source