Everything about this comment is wrong. Commits are never signed [EDIT: it is possible since 2011, but rarely used; thanks zobzu]. Annotated tags can be signed via PGP (not SSH keys), but the public key is not stored in the repository (unless you put it there manually, as with the tag "junio-gpg-pub" in git.git, which is not even Junio's current signing key). In practice, people obtain keys from PGP keyservers.
I can't reply to a child of this comment, but yes, this comment is entirely wrong.
However, Git can indeed sign commits (using gpg), not just tags.
"git commit -S"
Not by default it isn't. And git uses GPG, not SSH keys.
You're right, I was wrong.
I'm sorry.
Edit: I was wrong and changed all the words