A team wants to ensure that no commit messages are pushed without a specific ticket number format. Which Git Hook should they configure?

  • pre-receive
  • post-commit
  • update
  • pre-commit
In Git, the pre-commit hook is executed just before a commit is made, making it suitable for enforcing commit message formats. By configuring the pre-commit hook, the team can validate commit messages against the required ticket number format.
Add your answer
Loading...

Leave a comment

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