The examples that come with git are written in shell script; there are some basic ones in .git/hooks
of each repo and more advanced ones installed to /usr/share/doc/git-core/contrib/hooks
.
There's also more info on the various hooks available via $ man githooks
.