Quickly Start New Projects From Git Repo

Found this piece of code a while ago which is useful if you want to start projects from a skeleton repo or similar starting point.

~

Found this piece of code a while ago which is useful if you want to start projects from a skeleton repo or similar starting point.

mkdir new-laravel-project
cd new-laravel-project
git init
git fetch --depth=1 -n https://github.com/laravel/laravel
git reset --hard $(git commit-tree FETCH_HEAD^{tree} -m "Initial Commit")