Pushing to Github

Let’s initialize a repo so we can track our changes and deploy live to the web as we go.

Start off with a quick command to init the repo

git init

Then let’s get all of our current changes added and pushed to main, so we can create a repo.

git add .
git commit -m "Initial commit"

I’ll be using the Github CLI to create my repo and push it, but you can do it however you feel comfortable!

gh repo create 11ty-events-practice -s=. -r=upstream --public --push

This will create your repo, name it, and push up our commits all in one command.

We can see that everything is successful by running

gh repo view -w

Deploy to Netlify

We’re going to create a new project on Netlify, with our new repo as the base. Thankfully Netlify makes this quick and neat. Run…

netlify init

.. and fill in the prompts as they come such as: