Last active
August 29, 2015 14:23
-
-
Save mirekfranc/141c23ef704b21a72ca3 to your computer and use it in GitHub Desktop.
post-receive git hook
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
#!/usr/bin/bash | |
# rename to hooks/post-receive | |
# chmod u+x hooks/post-receive | |
read -r branch | |
if [[ $branch == *master ]] | |
then | |
# do something if somebody pushed something into master | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment