| 1 |
Git hooks are executable scripts you can place in $GIT_DIR/hooks directory to trigger action at certain points. |
| 2 |
|
| 3 |
To install manually, run: |
| 4 |
|
| 5 |
cd .git/hooks && ln -s ../../.git-hooks/* ./ |
| 6 |
|
| 7 |
There are two groups of these hooks: client side and server side. |
| 8 |
|
| 9 |
The client-side hooks: |
| 10 |
are for client operations such as committing and merging. |
| 11 |
|
| 12 |
The server-side hooks: |
| 13 |
are for Git server operations such as receiving pushed commits. |
| 14 |
|
| 15 |
See Also [ http://git-scm.com/book/en/Customizing-Git-Git-Hooks ] |