Skip to content

Instantly share code, notes, and snippets.

@kirai
Created August 27, 2012 04:41
Show Gist options
  • Save kirai/3485627 to your computer and use it in GitHub Desktop.
Save kirai/3485627 to your computer and use it in GitHub Desktop.
Check php syntax to all modified files before committing
git status | grep "modified" | sed s/\#.*:// | xargs -n1 php -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment