Created
November 2, 2018 20:29
-
-
Save jaydorsey/5e28df857a4dfd5b581237a9f588e89a to your computer and use it in GitHub Desktop.
Notify of file changed after git pull
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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