Skip to content

Instantly share code, notes, and snippets.

@mjsarfatti
Forked from akuzemchak/l4project.sh
Last active December 17, 2015 22:49
Show Gist options
  • Save mjsarfatti/5684963 to your computer and use it in GitHub Desktop.
Save mjsarfatti/5684963 to your computer and use it in GitHub Desktop.
# Initial setup
git clone -o laravel -b master https://github.com/laravel/laravel.git project-name
cd project-name
git checkout --orphan master
git commit -m "Initial commit"
composer install
# --or, simply--
composer create-project laravel/laravel
# Pulling changes
git fetch laravel
git merge --squash -m "Upgrade Laravel" laravel/master
git mergetool -t opendiff
find . -name "*.orig" -ok rm '{}' ';'
git commit -m "Upgrade Laravel"
composer update
# On remote server, after 'git push'
composer install # NOT update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment