美文网首页
Hexo 源文件备份

Hexo 源文件备份

作者: Mr_Gao_ | 来源:发表于2017-10-17 09:56 被阅读0次
1.进入到本地hexo博客文件夹所在位置
cd /Library/Application/hexo

2.将当前位置初始化为代码仓库
git init

3.设置远程仓库地址
git remote add origin https://git.coding.net/ghycn/ghycn.coding.com.git

4.创建hexo分支,用来存放源码
git checkout -b hexo

5.git 文件添加
git add .

6.git 提交
git commit -m "init"

7.push到hexo分支
git push origin hexo

相关文章

网友评论

      本文标题:Hexo 源文件备份

      本文链接:https://www.haomeiwen.com/subject/jriruxtx.html