码迷,mamicode.com
首页 > 其他好文 > 详细

个人博客搭建

时间:2017-07-25 15:44:26      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:hub   添加   any   osi   .com   use   git push   org   ini   

Create a repository
Head over to GitHub and create a new repository named username.github.io, where username is your username (or organization name) on GitHub.

If the first part of the repository doesn’t exactly match your username, it won’t work, so make sure to get it right.


1 创建
huanyi0723.github.io

2 git操作
git clone https://github.com/huanyi0723/huanyi0723.github.io

3 Hello World
cd huanyi0723.github.io
echo "Hello World" > index.html

4 Push it
git add --all
git commit -m "Initial commit"
git push -u origin master

5 浏览器
https://huanyi0723.github.io


1 安装
npm install -g hexo-cli

2 建站

hexo init huanyi0723.github.io
cd <huanyi0723.github.io>
npm install


git 命令

git add . 添加文件
git commit –m “初始代码提交”
git push -u origin master

个人博客搭建

标签:hub   添加   any   osi   .com   use   git push   org   ini   

原文地址:http://www.cnblogs.com/huanyi0723/p/7233785.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!