Skip to content

Instantly share code, notes, and snippets.

View jswright61's full-sized avatar

Scott Wright jswright61

View GitHub Profile
@jswright61
jswright61 / pre-commit
Last active September 16, 2020 23:28 — forked from wacko/pre-commit
Git hook to avoid commit debug lines (binding.pry console.log debugger...)
#!/usr/bin/env ruby
# modified from https://gist.github.com/wacko/62560b45c1d191859d6b
# Added custom phrase, made greps case insensitive
# Validates that you don't commit forbidden keywords to the repo
# You can skip this checking with 'git commit --no-verify'
exit 0 if ARGV.include?('--no-verify')
# Update this list with your own forbidden keywords