Question: What type of Git hook could be used to validate that a commit message contains a ticket number?

  1. pre-commit
  2. commit-msg
  3. applypatch-msg
  4. prepare-commit-msg

Answer: The correct answer of the above question is Option B:commit-msg