How-To: git pre-commit hook for NSLog calls Download the NSLog pre-commit hook from https://gist.github.com/plu/4124580 Copy the pre-commit file to YOUR_PROJECT/.git/hooks/pre-commit Make the hook executable by running chmod +x .git/hooks/pre-commit Enjoy!