Skip to content

Instantly share code, notes, and snippets.

Initialize new repository from CLI:
$ echo "# {yourproject.dev}" >> README.md
$ git init
$ git add README.md
$ git commit -m "first commit"
$ git remote add origin [email protected]:{username or org. name}/{yourproject.dev}.git
$ git push -u origin master
Create new branch:
$ git checkout -b {new_branch_name}
Steps:
1. Run ansible command to add site events.dev from vagrant LAMP (Mac)
ansible-playbook ansible/create-vagrant-site.yml
2. Install Laravel w/ composer from VM
composer create-project laravel/laravel {projectname.dev} 4.2 --prefer-dist
3. Update /etc/hosts
subl /etc/hosts
sass style.scss:style.css --style compressed
sass style.scss:style.css --watch