- Create your Github account (need a unique email address per acct)
- Create the website on your local development machine
- Create your local git repo (for a short how-to on Git, look at vagnini.net/meetup_files.htm)
- Sign into your new Github.com account and create the remote repo
KEY STEP: It MUST be in the format username.github.io
The username portion IS case sensitive and MUST match the case of your github username
- On your local git repo, create a remote repo
git remote add github https://github.com/username/username.github.io.git
username MUST match case of the Github username created in step 1
- Push your site to the remote repo
git push github master
- Test your content by browsing to http://username.github.io
- KEY STEP: For DNS, add (or modify) the @ A record (for the domain itself) to point to the IP address of username.github.io (discovered by pinging that address)
Add (or modify) the www CNAME record to point to username.github.io - KEY STEP: Create the CNAME file in your project folder (NOTE: it is called CNAME, not CNAME.txt)
It should contain the following: www.yourdomain.com
- KEY STEP: Push the CNAME file to the project and test for both yourdomain.com, and www.yourdomain.com