40 Custom Domain Name Github Pages New

Importantly we need to save the file name as cname by including our personal godaddy domain name in it.
Custom domain name github pages. Go to dns custom resource records. Step 1 set domain in github project go to your github pages site s repository settings. Enter your custom domain name here and hit save.
Scroll down this page until you find the github pages block. Step 1 create the repository username github io on github. In this block there is a custom domain header with an input field under it.
If you are doing something similar go through these straightforward 2 steps and save your time before proceeding to the two steps on how to use custom domain i will brief on how to. The easiest way to do this is to go to your project s repository and go to the settings tab on the right. Specify custom domain in github settings.
In order to add cname click on the upload new file located at the top right corner of the repository page save the file name as cname with your personal domain name in it. After filling all the required field hit the commit button with a commit message. Add cname file to github pages.
You will first want to create a cname file for your github pages site. This is a subtle but important step. I have already configured custom domain name for my repository so it s showing my custom domain name but in your case it will show your username github io.
In our previous github pages article we showed you how you can create a static site and host it in your github repository this is a simple option for creating a site with considerable limitations. After uploading the files go to settings of the repository in the top right corner and scroll down to github pages. Note that you need to use the button to add.