Question: How would you configure Git to abort a commit if a smoke test script fails?
- Create a post-commit shell script that triggers the action.
- Create a post-commit hook to trigger the script.
- Create a pre-commit hook to trigger the script.
- Create a pre-commit shell script that triggers the action.
Answer: The correct answer of the above question is Option C:Create a pre-commit hook to trigger the script.