GItHub pages 的使用方法

一、基于项目的网页

  在你的一个repository里的标签栏中选择settings,选择一种theme。

  就可以直接通过 https://username.github.io/repository 访问了。

 

二、个人网页

  1.新建一个repository,命名规则为 username.github.io

  2.本地创建一个文件夹放你的网站用

  3.在本地git bash clone url 操作,讲GitHub上的项目克隆过来

  4.本地会得到新的文件夹 username.github.io

  5.在文件夹内放置你的网站文件代码,每次本地更新之后,通过git add .  git commit -m "更新描述" git push 三步操作将本地更改更新到GitHub。

  6.https://username.github.io 就是你的网站首页了。

posted @ 2018-10-17 08:01  刁民阿准  阅读(361)  评论(0编辑  收藏  举报