步骤如下:
1.登入 GitHub,新建一个 repo,设置如下:


2.进入「settings」页面:

3.往下滚,开启 GitHub Pages 功能,得到一个「预览地址」,我的「预览地址」是https://help.github.com/articles/troubleshooting-github-pages-builds/
步骤如下:
1)新建 test/test.html



2)在浏览器输入:https://github.com/David88481473/blog/blob/master/index.html
这样,你就能自己随时预览 GitHub 里的页面了!
以后,你只需要用 git 上传代码到这个仓库,就可以拿到链接了!
网友评论