In GitHub, create a new repository
Name it, clone, copy url
Go to command line (cmd space search terminal)
Make sure you start on your desktop (cd desktop) and then navigate to the folder you want to be (cd code ) and then your project folder
type: git clone and paste the url. Should show as cloned and done. Type ls to see it on your desktop Type cd filename then ls to see what’s in the file (a readme)
Open your code editor and then open the folder you just created Start coding in that file. If you’ve already been coding in another file, then you have to drag it into your cloned file.
Then type git status in your terminal to see
Type git add index.html to add that file
But its not committed, so type git commit -m “initialize main webpage”
Git push origin main
Then go refresh on GitHub and you should see the index added (initialized)
so in terminal: git checkout -b BRANCH-NAME (minute 33 on video)
-You add a branch when you want to explore changes but not yet commit them to the main, esp if someone else needs to review them first;
-Click on the new branch in the dropdown menu and you can see your changes. But if you go to the main branch, you’ll see your changes not yet made.
This requires buying a domain name and configuring a DNS which is like- SO CONFUSING So standby bc i'm figuring it out still.
I know it involves GitHub Pages, and the DNS tab of google domainsGo here: https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages