#!/usr/bin/env bash echo "Checking out master branch" git checkout master git pull origin master git log master..develop read -p "Review your changes..." echo "Merging develop branch" git merge develop TAGSTAMP=`date +%Y-%m-%d.%H%M%S` echo "Tagging as ${TAGSTAMP}" git tag -a $TAGSTAMP echo "Pushing commits and tags" git push git push --tags echo "Checking out develop branch" git checkout develop git push