Writing for GCD: 如何将github repository 部署到GitHub pages

部署前准备:1.github账号、2.安装了Git并且熟悉git的基本操作

将github repository 部署到 github pages的步骤如下:

第一步:新建一个github repository“hello-freedom”:
Writing for GCD: 如何将github repository 部署到GitHub pages
现在有了一个github  repository,上面只有README.md、LICENSE和index.html文件,并且注意现在所在的分支是”master”。

第二步:点击页面右边一列的“Settings”,跳转到项目设置界面:
Writing for GCD: 如何将github repository 部署到GitHub pages
第三步:在设置界面找到“Github Pages”模块:
Writing for GCD: 如何将github repository 部署到GitHub pages
step1: 选择网站主题,可以直接预览
Writing for GCD: 如何将github repository 部署到GitHub pages

step2: 选择要发布的分支,选择完theme后会自动默认发布master分支,你也可以选择其他branch(前提是你有其他branch,没有就默认master就好了),发布成功后提示访问地址:https://freedom93.github.io/hello-freedom/
Writing for GCD: 如何将github repository 部署到GitHub pages


step3:访问地址https://freedom93.github.io/hello-freedom/发布成功

Writing for GCD: 如何将github repository 部署到GitHub pages
ALL, THX!