How to use Custom domain for a Github Page

How to use Custom domain for a Github Page

GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub, optionally runs the files through a build process, and publishes a website. ... You can host your site on GitHub's domain or your custom domain. To publish a website on the Github page, you need to add a repository on Github. If you have not to account on Github then you need to create an account first.

You can create an account on Github here. Github Signup

Before learn for Custom domain setting on Github pages let's take a short tour for adding repository on Github.

Add Repository on Github:

You can create a new repository on your account or any organization where you have sufficient permissions.

  1. In the upper-right corner of any page, click +, and then click New repository
  2. In the Owner drop-down, select the account you wish to create the repository on. 
  3. Type the name of your repository, and an optional description. Choose to make the repository either public or private. Public repositories are visible to the public, when private repositories are only accessible to you, and people you share them with. For more information, Visit Setting repository visibility
  4. When you're finished, click Create repository.

Let's get started

  1. Go to your repository setting.


  1. Go to Custom Domain section, Write Your own domain there. Here, I am using a domain from gen XYZ.
  2. Change the DNS setting from DNS Management of your domain panel.

Every domain provider has a different UI, but the format is pretty much the same.

Yup, It's Done.

Sometimes it takes a day to get your domain live. if it's not redirected yet make sure your configuration is correct.
If you find any type of error writes down the comment below.


Also Read:

8+ Great cource Websites to Learn New Tech Skills

Post Comments(0)

Leave a reply