- Create gh-pages branch
git checkout --orphan gh-pages
git rm -rf . # 砍掉所有檔案重來
... # 加新檔案
git add .
git commit -m 'create new branch'
Push this branch to github repo
-
Add CNAME files
-
Setup CNAME record at DNS server
-
change github repot setting to allow custom domain name