| 123456789101112131415161718 | #!/bin/bash#hook/post-receive#CONFIGPRODDIR="www"read oldrev newrev refnameif [ $refname = "refs/heads/prod" ]; then  echo "===== DEPLOYING APP ====="  unset GIT_DIR  cd ~  cd $PRODDIR  git pull --ff-only origin prod  echo $?  echo "====== OK ====="else  echo "Warning Commit not deployed, please use prod branch"fi
 |