git-files The git hooks must be placed in proper repository dirs in order to work. The procedure is perfectly explained in the following manual: http://git-scm.com/book/en/Customizing-Git-Git-Hooks