# Git Hooks
- managing events that trigger git hooks
- `/.git/hooks` directory is automatically created for a repo after running the `git init` ![[images/Pasted image 20250718190937.png]]
- `/.git/hooks` includes sample script files ![[images/Pasted image 20250718191004.png]]
- for example, `commit-msg.sample` can appear after using a commit command
- however, git ignores all files here with the `.sample`extension by default
- remove `.sample` extension and edit file to enable