jekyll bootstrap搭建github blog

前提你必须有一个GitHub账号且本机安装有Git

一、创建一个新的仓库

去你的https://github.com主页新建一个仓库 名字为USERNAME.github.com

USERNAME为你的username(下同)


二、安装Jekyll-Bootstrap

在Git Bash中输入例如以下命令 将代码clone到你本地

git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com
cd USERNAME.github.com
git remote set-url origin https://github.com/itmyline/USERNAME.github.com.git
git push origin master

PS:假设想clone到指定文件夹,则使用例如以下格式 git clone xxx.git "指定文件夹"

三、完毕

接下来Github将创建你的公开博客在 http://USERNAME.github.com


请參考本文搭建的bloghttp://itmyline.github.io/


假设你已经有blog在Github上?

假设你机器上安装有jekyll,假设没有请參考Windows上安装Jekyll

在本地执行Jekyll-Bootstrap,打开命令行工具 输入例如以下命令:

$ git clone https://github.com/plusjade/jekyll-bootstrap.git
$ cd jekyll-bootstrap
$ jekyll serve

浏览器中打开http://localhost:4000,我们将能看到和搭建在github上一样的效果


作者:itmyhome

出处:http://blog.csdn.net/itmyhome1990/article/details/42028597


原文地址:https://www.cnblogs.com/mengfanrong/p/4478784.html