Skip to content

Instantly share code, notes, and snippets.

@jaydorsey
Created November 2, 2018 20:29
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 jaydorsey/5e28df857a4dfd5b581237a9f588e89a to your computer and use it in GitHub Desktop.
Save jaydorsey/5e28df857a4dfd5b581237a9f588e89a to your computer and use it in GitHub Desktop.
Notify of file changed after git pull
#!/bin/sh -eu
# This file goes in .git/hooks/post-receive
if git diff-tree --name-status -t -r --root HEAD | grep -q 'development.sql'
then
echo "Your db/data/development.sql file changed. You may want to run rails gs:load"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment