Skip to content

Instantly share code, notes, and snippets.

View Eunoia's full-sized avatar
🍍
bring the hustle

Evan R Eunoia

🍍
bring the hustle
View GitHub Profile
@Eunoia
Eunoia / pre-commit
Last active December 24, 2015 05:09 — forked from lsaffie/pre-commit
#!/bin/bash
# echo $
#This is good j
git diff --cached | grep -i "^\+[^#]*debugger" &&
# git diff --cached --name-only --diff-filter=ACM
exit 1
# Pre commit hook that prevents FORBIDDEN code from being commited.
# Add unwanted code to the FORBIDDEN array as necessary