Which Git Hook is triggered before a commit is finalized?

  • pre-commit
  • post-commit
  • pre-receive
  • post-receive
The pre-commit hook is triggered before a commit is finalized. It allows you to inspect the changes that are about to be committed and optionally abort the commit. This hook is useful for tasks like code formatting or running pre-commit tests.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *