Skip to content

Instantly share code, notes, and snippets.

@paoloumali
Last active August 29, 2015 14:06
Show Gist options
  • Save paoloumali/0575674af6234e910b70 to your computer and use it in GitHub Desktop.
Save paoloumali/0575674af6234e910b70 to your computer and use it in GitHub Desktop.
Working with the soon-to-be-released Laravel 5

Start new l5 project

  • $ git touch readme.md
  • $ git ac 'start'
  • $ git remote add laravel https://github.com/laravel/laravel.git
  • $ git fetch laravel --no-tags
  • $ git checkout -b laravel5
  • $ git merge laravel/develop
  • $ git checkout -b dev
  • $ git checkout master
  • $ git merge dev
  • $ git tag 0.0.1
  • $ git remote add origin [email protected]:PaoloUmali/l5.app.git
  • $ git push -u origin --all # pushes up the repo and its refs for the first time
  • $ git push -u origin --tags # pushes up any tags
  • $ git checkout dev # always work off this branch
  • $ composer install # will get all new dependencies
  • $ composer update

Upgrading l5

  • $ git fetch laravel --no-tags # will get all updates from remote: laravel
  • $ git checkout laravel5
  • $ git merge laravel/develop # if laravel isn't released yet, use master after l5 becomes officially supported
  • $ git checkout dev
  • $ git merge laravel5
  • $ git checkout master && git merge dev # bump version
  • $ composer install: will get all new dependencies
  • $ composer update

Others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment