To maintain code quality, a __________ hook in Git can be used to run tests before each commit.
- Pre-commit
- Post-commit
- Pre-push
- Post-receive
In Git, a pre-commit hook is used to execute actions, such as running tests, before a commit is made. This ensures that the code complies with quality standards before being committed.
Loading...
Related Quiz
- A development team is implementing a code quality tool into their Git workflow. They need to automatically reject commits that don't meet the quality standards. Which Git feature should they leverage?
- What does the git log command display in a Git repository?
- In Git, git _______ shows the status of changes as untracked, modified, or staged.
- The git stash ________ command allows you to view all the stashed changes in the repository.
- Discuss the advantages of integrating Git with cloud-based IDEs in a CI/CD pipeline.