git hook
${REPOSITORY_ROOT}/.git/hooks $GIT_DIR/hooks
git config core.hooksPath ./git-hooks
pre-commit
- https://pre-commit.com/
- https://github.com/dotnet/format/blob/main/docs/integrations.md#pre-commitcom-hook-to-reformat
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
${REPOSITORY_ROOT}/.git/hooks $GIT_DIR/hooks
git config core.hooksPath ./git-hooks