ming

Ming

a about xiaoming story

Github

E:421543076@qq.com

Q:421543076

jekyll博客搭建

27 Apr 2015 - jekyll博客搭建

从git下载一个现有的jekyll模板,地址如下 tpw

修改文件夹,改成自己的信息以及把不必要的文件删除。

执行如下命令,对目录git初始化

git init

创建分支

git checkout --orphan master

把文件变动提交到本地git库

git add .

git commit -m "blog"

前往Github 新建一个 username.github.com 项目名//username为你github用户名

git remote add origin https://github.com/username/username.github.com.git

git push origin master

至此你的博客已经搭建完成

其他知识

yourbranch分支名 把远程库yourbranch拉取到本地库

git pull -u origin yourbranch

建立newbranch分支

git checkout -b newbranch

切换到master分支

git checkout yourbranch

把本地库提交到远程指定库中

git push origin yourbranch

参考:

http://www.ruanyifeng.com/blog/2012/08/blogging_with_jekyll.html