To prevent accidental commits of confidential data, Git can use a pre-commit ________.

  • hooks
  • filters
  • validations
  • scripts
In Git, pre-commit hooks allow you to perform actions or checks before a commit is completed. They are often used to prevent committing sensitive data, making "hooks" the correct term in this context.
Add your answer
Loading...

Leave a comment

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