Github Pages Domain name auto replaced by Personal Domain Name

Viewed 61

Recently I noticed an issue in my Github pages. When I try to deploy a site on GitHub pages the default {github_username}.github.io got replaced with my personal domain name automatically. Is there any way to get the default GitHub pages domain name?

N.B. I bought my personal domain name from Namecheap using GitHub student developer pack Maybe that's why GitHub automatically replaces the default domain one

Deploying Website

1 Answers

No, it is not automatic. It's because you have a CNAME file here. Delete this file & your problem should be solved. Also ensure that the custom domain field is empty in the GitHub pages setting (in your repo).

Related