Skip to content

Instantly share code, notes, and snippets.

View yalestar's full-sized avatar

Hank Radstar yalestar

View GitHub Profile
@yalestar
yalestar / gist:1054190
Created June 29, 2011 16:08 — forked from watsoncj/gist:1005449
pre-commit hook to prevent me from accidentally checking in debug code
#!/bin/sh
#
# This hook prevents you from committing any file containing "debugger".
#
# To enable this hook, rename this file to ".git/hooks/pre-commit".
DIFF_FILES=`git diff-index HEAD --cached --name-only`
if [ $? -ne 0 ]
then