美文网首页
git 分支管理hexo配置文件

git 分支管理hexo配置文件

作者: jellyb | 来源:发表于2018-10-16 11:20 被阅读34次
git push 本地博客文件夹

1、/Users/JellyB/Documents/Blog 内容到github 分支 hexo 下


cd /Users/JellyB/Documents/Blog
git init  //初始化本地仓库
git add . //将必要的文件依次添加
git commit -m "提交hexo 配置文件"
git branch hexo  //新建hexo分支
git checkout hexo  //切换到hexo分支上
//将本地与Github项目对接
git remote add origin https://github.com/JellyB/JellyB.github.io.git  
git push origin hexo  //push到Github项目的hexo分支上

如果不成功,你是否忘了添加注释?

git commit -m ''
另一终端(电脑) git pull hexo 并简单配置

2、clone & setting


cd /User/biguodong/Document/Blog
git clone -b hexo https://github.com/JellyB/JellyB.github.io.git  //将Github中hexo分支clone到本地
cd  yourname.github.io  //切换到刚刚clone的文件夹内
npm install    //注意,这里一定要切换到刚刚clone的文件夹内执行,安装必要的所需组件,不用再init
hexo s  //启动本地服务器,使用admin管理博客


Hexo 常用命令
hexo clean //hexo 清理
hexo g //hexo 根据md文件生成html等文件;
hexo d //部署hexo 文件到你的 githuab page
hexo s //本地启动hexo 博客 端口 4000

Blog

Blog-admin

link :CSDN

相关文章

  • git 分支管理hexo配置文件

    git push 本地博客文件夹 1、/Users/JellyB/Documents/Blog 内容到github...

  • git常用命令

    分支管理 git 切换分支 git 查看远程分支 git 查看本地分支 git 创建本地分支 git 删除本地分支...

  • hexo多电脑同步管理一个博客 | ZYMIN

    主要的思路是利用git分支实现。hexo生成的静态博客文件默认放在master分支上。 hexo的源文件(部署环境...

  • Git命令整理

    Git命令 ———————————————— git配置: git基本步骤: git分支管理: 创建分支命令: 切...

  • GIT分支管理

    GIT 分支管理 参考:在阿里,我们如何管理代码分支?GitHub Flow & Git Flow 基于Git...

  • git常用操作

    Basic Operation 分支管理切换分支git checkout git checkout -b #...

  • Git常见使用命令

    开发项目常用的几个命令: 1、本地库 2、远程库 3、分支管理 4、标签管理 配置别名 别名文件:Git配置文件都...

  • git提交代码规范管理

    GIT分支管理 git远程分支主要包括:master develop fixbugmaster:整个项目主分支,...

  • 2021-11-30

    一、分支管理 1、创建分支 git branch 2、查看分支 git branch...

  • git分支仓库管理

    git分支和标签管理 创建分支 git branch banchName git checkout -b bra...

网友评论

      本文标题:git 分支管理hexo配置文件

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