Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash script to automate new project creation using Alfred, Github and Beanstalk
# 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
# Cleanup directory
cp -R HTML-Base/* . && rm -rf HTML-Base && rm
# Initialize git, add remote Beanstalk repo and push first commit
git init
git add .
git commit -m "First commit."
git remote add beanstalk{query}.git
git push beanstalk master
# Add repo to Tower
/Applications/ --add ~/desktop/{query}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.