Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.