-
-
Save wmather/5705515 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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