GIT pre-commit hook for checking the existence of certain words/phrases/functions in the code to be committed.
To install hook, copy pre-commit file to your project .git/hooks/pre-commit:
$ cp pre-commit .git/hooks/pre-commit;
$ chmod +x .git/hooks/pre-commit;
The hook comes with the die
, print_r
and dump
functions as the strings to
be checked prior to the commit. You can add more strings to be checked if you wish
by modifying the checks array
uTip's repositories are open projects, and community contributions are essential for keeping them great.
The list of contributors can be found at: https://github.com/utipteam/Git-Pre-Commit-Hook-for-certain-words/graphs/contributors