Skip to content

Instantly share code, notes, and snippets.

@niallobrien
Last active January 12, 2016 01:46
Show Gist options
  • 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 [email protected]/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