Just a small git pre-commit hook that is aimed towards catching traces of debugging code you may have forgotten, specifically in JavaScript/CoffeeScript files that are intended to be exposed.
~ cp pre-commit.sh /path/to/your/project/.git/hooks/pre-commit
~ chmod +x /path/to/your/project/.git/hooks/pre-commit
Assuming you forgot to remove a console.log(this);
line here and a debugger;
breakpoint there, you commit your changes and then the pre-commit hook throws this wonderful tantrum at you:
~ git commit --no-verify