Chapter 11 Running a Git Server with Gitosis
Gitosis is a tool that shows off the brilliance of Git. Not only is Git a distributed version control system, but it is a platform for building other applications that depend on a file system and can benefit from versioning.
More specifically, Gitosis is a tool for managing a remote Git server and its repositories. It does this by using a Git repository to store its configuration. All you have to do if you need to update the configuration of the server is push that new configuration to the Gitosis repository.
It manages this by taking advantage of the hook scripts,
located in the .git/hooks/ directory. Hook scripts
execute at certain events such as before a commit (the pre-commit script) or ...