《Deep Learning Series》
  • 深耕系列之深度学习笔记
  • 第一章 Linux学习环境相关配置
    • 1.1 Ubuntu18下有道词典的配置
    • 1.2 Ubuntu18 安装Gitbook
    • 1.3 Ubuntu18 git命令使用总结
    • 1.4 Latex 排版使用笔记
    • 1.5 Ubuntu下常用工具软件配置安装
    • 1.6 win10+ubuntu双系统修复ubuntu启动引导
    • 1.7 gitbook 插件等相关设置
    • 1.8 深度学习环境搭建
    • 1.9 hexo 实现本地图片加载
    • 1.10 hexo网页定制
    • 1.11 sublime text3插件介绍
    • 1.12 vsftpd.conf文件配置
    • 1.13 mysql 笔记
    • 1.14 ubuntu16_18安装peek工具录制gif
    • 1.15 ubuntu下goldendict有道爬虫小程序
    • 1.16 ubuntu18升级后部分应用不能中文输入的问题
    • 1.17 ubuntu下安装有道词典
    • 1.18 opencv 安装
    • 1.19 gym_gazabe安装配置
    • 1.20 docker 基础
    • 1.21 docker_配置权限问题
    • 1.22 jupyternotebook使用
  • 第二章 深度学习相关基础算法
    • 2.1 马尔科夫链
      • 2.1.1 马尔科夫简单模型预测实战笔记
      • 2.1.2 最大熵模型
      • 2.1.3 隐马尔科夫HMM
    • 2.2 矩阵相关基础知识
    • 2.3 线性回归
    • 2.4 决策树
    • 2.5 梯度下降和最小二乘法
    • 2.6 递归算法与迭代算法
    • 2.7 神经网络浅学笔记
    • 2.8 强化学习经验回放
    • 2.9 K近邻算法
    • 2.10 朴素贝叶斯法
    • 2.11 极大似然估计
    • 2.12 logistic regression
  • 第三章 深度学习框架学习
    • 3.1 PyTorch 学习
      • 3.1.2 Pytorch 之MNIST手写字识别分类
    • 3.2 tensorflow学习笔记
      • 3.2.1 tensorflow之MNIST
    • 3.3 matplotlib函数
    • 3.4 numpy函数
  • 第四章 ROS机器人
    • ROS室内仿真环境.md
    • ros and gazebo and gym_gazebo安装
    • ubuntu16 安装gym-gazebo
    • gym-gazebo安装后的测试
    • 基于DQN的gym_gazebo运行代码演示
  • 项目开发
    • Library占座小工具使用手册
  • 附录
    • Python 相关笔记
      • Python 帮助文档检索方法
      • Module篇使用future
    • Git 相关配置
      • git-推送新的文章到github其他分支上
      • gitignre 配置
      • gitignre 配置
      • Hexo 每次写好后deploy博客
      • MFC Socket 通信
      • python之tkinter入坑Pack
      • ubuntu 中安装sublime_text3
      • ubuntu18-正确-安装ShadowSocket
      • vultr+freenom实现主机域名的绑定.md
      • 值得收藏的网站
      • 搜索技巧
      • 第一篇博文
      • 简单的方法,越过付费获取在线的log设计.md
      • 网页设计基础笔记.md
      • 解决Chrome67版本以后不能离线安装插件的情况.md
    • 嵌入式相关笔记
      • STM32串口通信配置
      • STM32复位及通过函数判断是何种条件出发的复位
Powered by GitBook
On this page
  • 摘要
  • 网站部署(建议隔段时间再部署到网站上,短时间内直接部署本地,本地浏览下就好
  • 部署到网上
  • 部署到本地
  • 其他注意事项

Was this helpful?

  1. 附录
  2. Git 相关配置

git-推送新的文章到github其他分支上

PreviousGit 相关配置Nextgitignre 配置

Last updated 6 years ago

Was this helpful?

摘要

每次编辑博文并通过命令部署网站到github page上时,我们想每天都能将改动后的博文备份到github的一个分支上,实现本地数据同步到云仓库中。

  • 实现本地博客云同步到github page其他分支上

  • 实现本地博客部署到github page上的master分支上

我的博客网站

网站部署(建议隔段时间再部署到网站上,短时间内直接部署本地,本地浏览下就好

部署到网上

  • 直接部署到github page的master上

1 git clone -b proworking <我的github网站仓库:proworking>
2 git pull origin proworking  #从我的工作分支更新最新的博文和站点配置文件
3 git checkout master  #将我们的本地切换到master分支
4 #此处开始加入你的博文.md到站点的:\source\_posts文件夹中
5 hexo clean && hexo g && hexo d

部署到本地

  • 本地部署,本地浏览效果

1 git clone -b proworking <我的github网站仓库:proworking>
2 git checkout master  #将我们的本地切换到master分支
3 #此处开始加入你的博文.md到站点的:\source\_posts文件夹中
4 hexo clean && hexo g && hexo d

实现从github上获取我仓库中的Proworking分支数据,病拉取到我的本地

  • 将本地的博文再重新push到我的云仓库(proworking)

git add .
git commit -m "添加了:file1.md\file2.md"
git push origin HEAD:proworking #一定要添加HEAD 不然会

其他注意事项

下面贴上我遇到的问题

  • [1] 若果你直接输入命令:

    $ git push proworking

    可能会出现如下的不正常信息:

Pertor@Pertor-PC MINGW64 /d/Github/smritipertor.github.io (master)
$ git push proworking

fatal: 'proworking' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

正确的解决办法是,命令中输入如下代码(加HEAD)

Pertor@Pertor-PC MINGW64 /d/Github/smritipertor.github.io (master)
$ git push origin HEAD:proworking

此时会输出正确的提示,具体提示信息如下:

Enumerating objects: 1498, done.
Counting objects: 100% (1480/1480), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1219/1219), done.
Writing objects: 100% (1461/1461), 1.17 MiB | 390.00 KiB/s, done.
Total 1461 (delta 187), reused 1300 (delta 139)
remote: Resolving deltas: 100% (187/187), completed with 10 local objects.
To https://github.com/smritipertor/smritipertor.github.io.git
   06b21dd..1ff56b7  HEAD -> proworking