Skip to content

Instantly share code, notes, and snippets.

@wmather
Forked from akuzemchak/l4project.sh
Last active December 18, 2015 01:39
Show Gist options
  • Save wmather/5705515 to your computer and use it in GitHub Desktop.
Save wmather/5705515 to your computer and use it in GitHub Desktop.
# Initial setup
git clone -o laravel https://github.com/laravel/laravel.git project-name
cd project-name
git checkout --orphan master
git commit -m "Initial commit"
# Pulling changes
git fetch laravel tag v4.0.13
git merge --squash -m "Upgrade Laravel" laravel/master
# Alternatively, specify a version tag by doing
git merge --squash -m "Upgrade Laravel" v4.0.13
# Fix merge conflicts if any and commit
##ALTERNATIVE
# Initial setup
git clone -o framework https://github.com/laravel/laravel.git project-name
cd project-name
# Rename pulled master branch
git branch -m master laravel
git checkout --orphan master
git commit -m "Initial commit"
# Pulling changes
git fetch framework
git merge --squash -m "Upgrade Laravel" framework/master
# Fix merge conflicts if any and commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment