Skip to content

Instantly share code, notes, and snippets.

@DrPyser
Created August 7, 2019 20:11
Show Gist options
  • Save DrPyser/02c0d3df2e1273b90bfdbe42590415ae to your computer and use it in GitHub Desktop.
Save DrPyser/02c0d3df2e1273b90bfdbe42590415ae to your computer and use it in GitHub Desktop.
Simple template for a minimal post-receive git hook
# https://github.com/git/git/blob/7c20df84bd21ec0215358381844274fa10515017/Documentation/githooks.txt#L314
while read from to branch; do
echo "Received update: $from -> $to on branch $branch";
# do stuff
done;
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment