Skip to content

Instantly share code, notes, and snippets.

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