hexo 備份

git init

1
2
cd blog
git init

建立新分支 backup

1
git checkout -b backup

hexo 本身已建立 .gitignore

1
2
3
4
5
6
7
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/

add file and commit

1
2
git add .
git commit -m "1st commit"

push to remote

1
2
git remote add origin https://github.com/hot5656/blog.git
git push -u origin backup