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.
Loading...
Related Quiz
- In a code review, checking for _______ and _______ is essential to maintain code quality.
- To ignore certain files from being tracked in Git, list them in a _______ file.
- In complex workflows, pull requests may be used to merge changes from _______ branches to _______ branches before reaching the main branch.
- For an open source project on GitHub, what is the standard method for contributing changes?
- For large-scale open source projects, Git's ________ feature is essential for managing multiple project versions simultaneously.