Skip to content

Instantly share code, notes, and snippets.

@agreen757
Created June 7, 2015 23:19
Show Gist options
  • Save agreen757/cc905335e3cecec238d7 to your computer and use it in GitHub Desktop.
Save agreen757/cc905335e3cecec238d7 to your computer and use it in GitHub Desktop.
Deploy with shipit - still building on this with some default values
#!/bin/bash
clear
echo
echo
echo "What files you wanna commit?:"
read files
echo "Whats your commit message?"
read message
echo "Remote? [origin]:"
read remote
if [ -z $remote ];then
remote="origin"
fi
echo "Branch? [master]:"
read branch
if [ -z $branch ];then
branch="master"
fi
read -p "Press enter to execute"
git add $files && git commit -m "$message" && git push $remote $branch && shipit staging deploy && shipit staging start &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment