Skip to content
Gerbert Olivé Vázquez edited this page Jan 28, 2015 · 1 revision

Add pre-commit to avoid commiting binding.pry. Create .git/hooks/pre-commit executable file in

#!/bin/sh

if git grep 'binding.pry'; then
  echo 'Before commit, please edit listed files containing "binding.pry"'
  exit 1
fi

Clone this wiki locally