Skip to content

Instantly share code, notes, and snippets.

@tomdottom
Last active March 13, 2016 22:29
Show Gist options
  • Save tomdottom/1c89baad02455a7e24fa to your computer and use it in GitHub Desktop.
Save tomdottom/1c89baad02455a7e24fa to your computer and use it in GitHub Desktop.
Git Hook Pre Receive StdIn
#!/bin/bash
while read oldrev newrev refname; do
echo "$oldrev $newrev $refname"
# your code
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment