composer create-project laravel/laravel [folder-name]
laravel new [folder-name] --git (<- Use the last command to automatically initialize a local git repo)
Head to the project directory
cd [folder-name]
Initialize a local repo
git init
Add all files to stage area
git add .
First commit and message
git commit -m"initial commit"
git remote add origin [repolink.git]
git branch -M main
git push -u origin main