Github Pages Forgets About My Custom Domain

Check Date

Works on 2019-01-23 12:22:57+0800

Question

Github forgets about my custom domain every time I update the website. It resets to the default xxx.github.io URL every time I update the site

Answer

echo "your.domain" > your-github-page-folder/CNAME before push the content of your-github-page-folder to gh-pages branch

Reference

Published 23 Jan 2019

Bring the answer to lost vistor
MagicRabbit on Twitter