Skip to content

Instantly share code, notes, and snippets.

View fimdomeio's full-sized avatar

Alexandre fimdomeio

View GitHub Profile
@fimdomeio
fimdomeio / gist:fcc54fc1a3174d4b65365e4c61a10bb8
Created August 8, 2017 23:28 — forked from guilherme/gist:9604324
Git pre-commit hook that detects if the developer forget to remove all the javascript console.log before commit.
#!/bin/sh
#To install: add to .git/hooks/pre-commit file
# Redirect output to stderr.
exec 1>&2
# enable user input
exec < /dev/tty
regexp='^\+.*console\.log('
# CHECK