To automate the execution of tests every time a new commit is pushed, a _________ Git hook can be utilized.
- Pre-receive
- Post-receive
- Update
- Pre-commit
Git hooks are scripts that Git executes before or after events such as commit, push, and receive. The Post-receive hook is suitable for automated tasks after a successful push.
Loading...
Related Quiz
- The command git _______ can be used to find a list of all commits that could be causing a merge conflict.
- Customizing the __________ Hook can help enforce coding standards before code is pushed.
- What are the best practices for managing a pull request in a large project?
-
If you need to review the history of changes within a specific file, use git _______
. - During the migration to Git, a team encounters issues with large binary files slowing down the repository. What Git feature or strategy can address this issue?