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 里的頁面了!