Created
September 30, 2012 17:25
-
-
Save avclark/3807761 to your computer and use it in GitHub Desktop.
Bash script to automate new project creation using Alfred, Github and Beanstalk
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
# Create Beanstalk Repository | |
printf "git\n \n" | /Users/avclark/beanstalk repo:create {query} | |
# Create our new project directory | |
cd ~/desktop && mkdir {query} && cd {query} | |
# Clone our HTML-Base repo from Github | |
git clone https://github.com/avclark/HTML-Base.git | |
# Cleanup directory | |
cp -R HTML-Base/* . && rm -rf HTML-Base && rm readme.md | |
# Initialize git, add remote Beanstalk repo and push first commit | |
git init | |
git add . | |
git commit -m "First commit." | |
git remote add beanstalk git@bottlerocket-creative.beanstalkapp.com:/{query}.git | |
git push beanstalk master | |
# Add repo to Tower | |
/Applications/Tower.app/Contents/MacOS/gittower --add ~/desktop/{query} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment