了解两种部署方式的区别,选择最适合您项目的方法
仓库 Settings → Pages → Build and deployment → Source
选择 "Deploy from a branch" 然后选择:
/ (root) - 从根目录部署/docs - 从/docs文件夹部署对于您的 html_css.github.io 仓库:
建议使用根目录部署,因为这是一个专门用于网站的仓库,不需要将网站文件与代码分离。
index.html 文件/(root) 文件夹docs 文件夹docs 文件夹docs 文件夹中有 index.html 文件/docs 文件夹如果您想从一种方式转换到另一种: