Created
November 1, 2010 01:05
-
-
Save ericclemmons/657409 to your computer and use it in GitHub Desktop.
Bash script to merge, tag, & push the "develop" branch
This file contains hidden or 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/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment