Skip to content

Instantly share code, notes, and snippets.

@imolorhe
Created September 18, 2019 09:49
Show Gist options
  • Save imolorhe/975bc67b5600483170f5c5bd1fd38615 to your computer and use it in GitHub Desktop.
Save imolorhe/975bc67b5600483170f5c5bd1fd38615 to your computer and use it in GitHub Desktop.
My Git hooks
SRC_PATTERN="site/assets/js/"
if git diff --cached --name-only | grep --quiet "$SRC_PATTERN"
then
echo "none"
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment