1.登入GitHub,点击New repository

2.点击Create repository

3.进入「settings」页面:

4.往下,开启 GitHub Pages 功能,得到一个「预览地址」,我的「预览地址」是https://achingsoul.github.io/demos/

5.以后你就用这个「预览地址」来预览你的 html,比如你的 html 路径是 demos/test.html,那么预览链接就是
https://achingsoul.github.io/demos/test.html
步骤如下:
①新建test.html


②在浏览器输入https://achingsoul.github.io/demos/test.html
这样,你就能自己随时预览 GitHub 里的页面了!