您的位置:首页 > Web前端 > BootStrap

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

2015-07-08 10:30 651 查看

如何搭建自己的博客

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,就会显示默认几个页面。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  github上 bootstrap