Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 868 Bytes

HOOKS.md

File metadata and controls

26 lines (17 loc) · 868 Bytes

HOOKS

Examples relating to git hooks.

Git hook scripts are useful for identifying simple issues before submission to code review. We run our hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements. By pointing these issues out before code review, this allows a code reviewer to focus on the architecture of a change while not wasting time with trivial style nitpicks.

Removing hooks

# listing hooks
ls -la $(git root)/.git/hooks

# delete all none sample hooks
find $(git root)/.git/hooks ! -name '*.sample' -print -delete 

Pre-commit tool

brew install pre-commit

Resources

  • A framework for managing and maintaining multi-language pre-commit hooks. here
  • Supported hooks here