#!/bin/sh set -e branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') echo "\nSaving the work in your ${branch} branch to production…\n" git push live "$branch" echo "\nSaved.\n" if [[ "$branch" == "master" ]]; then echo "If you have deployment rights, you can ./deploy now.\n" fi