首页 > 代码库 > 个人博客搭建
个人博客搭建
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
个人博客搭建