Created
June 7, 2015 23:19
-
-
Save agreen757/cc905335e3cecec238d7 to your computer and use it in GitHub Desktop.
Deploy with shipit - still building on this with some default values
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
#!/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