Skip to content

Instantly share code, notes, and snippets.

@jryio
Created November 17, 2015 00:20
Show Gist options
  • Save jryio/b2736e7394852ad3dd80 to your computer and use it in GitHub Desktop.
Save jryio/b2736e7394852ad3dd80 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
#
# This pre-push hook will automatically pull the _posts submodule.
# _posts submodule will be behind its master branch unless pulled
# in this repository.
echo "_posts submodule has been pulled"
exec git submodule foreach git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment