Created
October 3, 2013 15:31
-
-
Save andersonfraga/6811788 to your computer and use it in GitHub Desktop.
New branch and deploy! \m/
This file contains 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
if [ $# -eq 0 ] | |
then | |
echo "C'mmon! Specific new branch, please!" | |
else | |
echo "~ git pull composer" | |
git pull composer | |
echo "~ git pull origin" | |
git pull origin | |
echo "~ git push origin master:master" | |
git push "origin" master:master | |
echo "~ git push composer master:master" | |
git push "composer" master:master | |
echo "~ git checkout -b $1 master" | |
git checkout -b $1 master | |
echo "~ git push origin $1" | |
git push "origin" $1 | |
echo "~ git push composer $1" | |
git push "composer" $1 | |
echo "~ git checkout master" | |
git checkout master | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment