Skip to content

Instantly share code, notes, and snippets.

@ConradIrwin
Created November 16, 2011 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConradIrwin/1370912 to your computer and use it in GitHub Desktop.
Save ConradIrwin/1370912 to your computer and use it in GitHub Desktop.
Pre-commit hook for CocoaPods/Specs forks
#!/bin/sh -e
# 1. Save this file as .git/hooks/pre-commit
# 2. chmod a+x .git/hooks/pre-commit
git diff --name-only --cached | xargs -n1 pod spec lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment