Skip to content

Instantly share code, notes, and snippets.

@jherran
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save jherran/ed5d8e90784ef5b30206 to your computer and use it in GitHub Desktop.

Select an option

Save jherran/ed5d8e90784ef5b30206 to your computer and use it in GitHub Desktop.
Git Hook post-checkout for running pod install after git checkout
#!/bin/bash
if [ -f Podfile ] && command -v pod install >/dev/null
then
(unset GIT_DIR; exec pod install)
true
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment