# Git Hooks This directory contains global git hooks that can be used across all repositories. ## Setup 1. Configure git to use this directory for hooks: ```bash git config --global core.hooksPath ~/dotfiles/git/hooks ``` 2. Make hooks executable: ```bash chmod +x ~/dotfiles/git/hooks/* ``` ## Available Hooks - `pre-commit`: Run before each commit - `commit-msg`: Validate commit messages - `pre-push`: Run before pushing ## Per-Repository Hooks To use repository-specific hooks instead of global ones: ```bash git config --local core.hooksPath .git/hooks ```