Add custom domain to your github page.
- Log in to your domain registrar and find where to change your host records.
- Change your domain's Address Record to 204.232.175.78. This is GitHub's IP address, which allows GitHub to resolve your URL and serve the correct files.
- In your website's directory folder on your computer, create a file called "CNAME". On the first line, type your domain name. Save the file.
- In your GitHub application, you should see the file in the left column. Make sure it is checked and enter your commit message.
- Click "Sync branches."
- It can take as long as 48 hours for your domain to resolve to your GitHub page. However, it is usually pretty quick, so check back in an hour or so.