This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |