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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *