| 1234567891011121314151617 | #!/bin/bash#hook/pre-receive#CONFIGPRODDIR="www"read oldrev newrev refnameif [ $refname = "refs/heads/prod" ]; then  echo "===== UPDATE REPOSITORY ====="  unset GIT_DIR  cd ~  cd $PRODDIR  git add .  git commit -m "Auto Commit"  echo "====== OK ====="else  echo "Warning Commit not deployed, please use prod branch"fi
 |