Last active
November 16, 2023 08:48
-
-
Save akuzemchak/5210425 to your computer and use it in GitHub Desktop.
New L4 project with clean history
This file contains hidden or 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 framework -b develop https://github.com/laravel/laravel.git project-name | |
cd project-name | |
git checkout --orphan master | |
git commit -m "Initial commit" | |
# Pulling changes | |
git fetch framework | |
git merge --squash -m "Upgrade Laravel" framework/develop | |
# 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
Just a quick note on doing the same now that laravel is stable, since you're cloning the master branch now you won't be able to run
git checkout --orphan master
because there's already a branch namedmaster
so the steps I take now are:I think you can even delete the
laravel
branch but I'm not sure. Hope it helps.