How can I manually run a Git pre-commit hook, without attempting a commit? December 10, 2022 by Tarik Just run the pre-commit script through the shell: bash .git/hooks/pre-commit