书山有路勤为径,学海无涯苦作舟

0%

hexo 使用 git 版块控制

hexo 使用 git 版块控制

hexo 通过 git 进行版本控制

初次提交代码

1
$ cd <blog_folder>
1
2
3
$ git config --global user.email "909986101@qq.com"
$ git config --global user.name "909986101"
$ git config --global credential.helper store

初始化本地仓库

1
$ git init

将本地仓库和远程仓库进行关联

1
$ git remote add origin https://github.com/909986101/blog.ilxy.tech
1
2
3
4
$ git add .                                 ## 将本地代码加入暂存区
$ git commit -m "-" ## 将本地代码加入本地仓库
$ git push ## 将本地分支push到远程仓库
$ git push --set-upstream origin master