Created
February 2, 2017 13:13
-
-
Save cdallagnola/8d195f59ed53b184e4253f293f429552 to your computer and use it in GitHub Desktop.
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/sh | |
i='System.out.println' | |
git diff |\ | |
grep --color --with-filename -n $i \ | |
&& echo '\nCOMMIT REJECTED Found "'$i'" in code !! Please remove them before commiting\n'\ | |
&& exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment