GitHub: Create your unique repository
Github allows every user to host their site for free. The only catch is that you have to create a repo that is
Create a new repo that is an exact match of your username.
git init or git clone
1 2 3 4 5 6
touch README.md git init git add README.md git commit -m "first commit" git remote add origin firstname.lastname@example.org:USERNAME/USERNAME.github.io.git git push -u origin master
Create an index.html
Create a CNAME file
Inside your CNAME file insert your domain name.
Git add, git commit, and git push your changes
1 2 3
git add . git commit -m "your commit message" git push origin master
Go to “Manage Domains > All Host Records”
Modify your domain name settings
Change @ to an
A Record and IP/ADDRESS to Github’s IP/ADDRESS:
Change www to
CNAME and IP/ADDRESS to
After your changes are saved, wait 5-10 minutes for yourdomainname.com to be hosted on github.