1 Git hooks are executable scripts you can place in $GIT_DIR/hooks directory to trigger action at certain points.
3 To install manually, run:
5 cd .git/hooks && ln -s ../../.git-hooks/* ./
7 When you using GIT for Windows, you need Windows links
8 Open a Dos-Box with admin rights then
10 FOR /F " usebackq " %i IN (`dir /b ..\..\.git-hooks`) DO del /as /f %i & del %i & mklink %i ..\..\.git-hooks\%i
11 the error 'Could Not Find ...' can be ignore
13 There are two groups of these hooks: client side and server side.
15 The client-side hooks:
16 are for client operations such as committing and merging.
18 The server-side hooks:
19 are for Git server operations such as receiving pushed commits.
21 See Also [ http://git-scm.com/book/en/Customizing-Git-Git-Hooks ]