Pre-commit hooks#

Learning Objectives#

After working through this topic, you should be able to:

  • Explain what pre-commit hooks are and why they are useful

  • List a few examples of pre-commit hooks

  • Use the -am option with git commit

  • Enable pre-commit hooks in a git repository

  • Commit with enabled pre-commit hooks

Materials#

Video:

Download the slides.

Quiz#