Skip to content

Instantly share code, notes, and snippets.

@niallobrien
Last active January 12, 2016 01:46
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niallobrien/5098578 to your computer and use it in GitHub Desktop.
Save niallobrien/5098578 to your computer and use it in GitHub Desktop.
Laravel 4 install & update process
// Clone L4 repo
git clone -b develop git://github.com/laravel/laravel.git myapp
cd myapp
// Install Composer
curl -sS https://getcomposer.org/installer | php
php composer.phar install
// Rename origin
git remote rename origin upstream
// Add your own repo as Origin
git remote add origin git@github.com/niallobrien/myapp.git
git push -u origin develop
------------------------------------------------------
// Update L4 app
git fetch upstream
git merge upstream/develop
// Update Composer packages
php composer.phar update
git push # would go to your fork
@niallobrien
Copy link
Author

Alias php composer.phar to composer if you want. Also works well for artisan.

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