Skip to content

Instantly share code, notes, and snippets.

@themarcba
Created July 28, 2015 13:11
Show Gist options
  • Save themarcba/84de8e9d31865d9d9b48 to your computer and use it in GitHub Desktop.
Save themarcba/84de8e9d31865d9d9b48 to your computer and use it in GitHub Desktop.
if [ "$1" == "develop" ] || [ "$1" == "d" ] || [ -z "$1" ]; then
echo "Pushing to develop..."
git push code develop
elif [ "$1" == "master" ] || [ "$1" == "m" ]; then
echo "Pushing to master..."
git push code master
else
echo "Push feature/$1..."
git push code "feature/$1"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment