Last active
March 13, 2016 22:29
-
-
Save tomdottom/1c89baad02455a7e24fa to your computer and use it in GitHub Desktop.
Git Hook Pre Receive StdIn
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/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