hexo with different pc

hexo continue

hexo in different devices

同步hexo目录

  • 通过百度云同步盘对不同电脑上的hexo博客目录进行同步

解决.git隐藏文件不同步问题

同步有一个问题.deploy目标保存着hexo执行git提交的git配置文件夹.git。但是该文件夹是隐藏文件夹,因此百度云同步盘不能同步

对其他文件正常同步

在新pc上同步hexo文件夹之后,在.deploy目录执行

  • git init
  • git add .
  • git checkout -b gitcafe-pages

退回到hexo目录执行

  • hexo clean
  • hexo g
  • hexo d

执行完上述步骤既可以实现从同步盘同步数据,并且提交hexo到gitcafe

在github和gitcafe之间切换提交

首先需要到hexo目录下的配置文件修改提交地址

从gitcafe切换到github

在.deploy目录执行

  • git checkout -b master

退回到hexo目录

  • hexo clean
  • hexo g
  • hexo d

重新回到切换回gitcafe

到.deploy目录执行

  • git checkout gitcafe-pages