使用jekyll bootstrap在github上建立个人博客

来源:互联网 发布:彼德伯格俱乐部知乎 编辑:程序博客网 时间:2024/05/17 01:47

如何搭建自己的博客

1、注册自己的github账户
2、新建一个新的repository,命名为 USERNAME .github.com,其中USERNAME 为你的用户名。如果用户名中有大写字母,命名repository时系统会将大写字母变小写
3、在终端中输入下面的代码:


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

如果遇到下面的错误,需要为你的github账号添加ssh key,可以参考这篇博文
http://blog.sina.com.cn/s/blog_6b706e15010199p1.html


Permission denied (publickey).fatal: Could not read from remoterepository.Please make sure you have the correct accessrights and the repository exists.

过几分钟(并非立刻),你就可以访问http://cyan-blue.github.io,就会显示默认几个页面。

0 0
原创粉丝点击