Development·1 min read
Configuring a custom domain for GitHub Pages
A quick tutorial on how to host a static site on GitHub Pages and point a custom domain to it.

Hey folks! I put together a quick tutorial for anyone who wants to host static sites on GitHub and wire up a custom domain.
Take a look:
In the video I walk through how to attach a domain (DNS) you own on GoDaddy to a static site hosted on GitHub.
- Add a
CNAMEfile at the project root containing your domain - Repository Settings – GitHub Pages – branch
masterand custom domain –csmpsicologia.com– SAVE - Configure the DNS records on GoDaddy
- Wait a few minutes and test by visiting
csmpsicologia.comor runningping/digfrom the terminal - Done
Very handy for portfolios, landing pages, and other static sites out there.
Case study:
site with custom domain: http://csmpsicologia.com/
GitHub Pages: https://tgmarinho.github.io/csmpsicologia/
repository: https://github.com/tgmarinho/csmpsicologia
September 2, 2017 · Brazil