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.
# listing hooks
ls -la $(git root)/.git/hooks
# delete all none sample hooks
find $(git root)/.git/hooks ! -name '*.sample' -print -delete
brew install pre-commit