Go to github and create and account, if you don’t already have one
Create a new repocitory

Give it a name

Log in from your terminal to your Github account:
git config --global [user.name](http://user.name/) "your_username"
git config --global user.email "[email protected]"
Once logged in type these commands:
git init // starts the git project
git add [.](http://readme.md/) // adds everything to the cue
git commit -m "first commit" // commit (confirm) with a nice coimment
git branch -M main // connect to the desired branch
git remote add origin *https://github.com/yourrepo/url // connect to the remote project*
git push -u origin main // makes the final changes
After each modification to your project you can type:
git add .
git commit -m “another comment”
git push // if you are already in the desired branch, you don’t need add anything else
Click on “Settings” on your github’s repo

Select “Pages” on the left menu

Here you can select what branch you’d like to deploy

It’s most of the time the one called “main”