Import current Hexo blog to new PC

401 Views Asked by At

I started a Hexo blog on my laptop but I'd like to work on the same blog and update it on a different PC, how do I do this?

The blog is hosted via Github Pages on a public Git Repository. And I'm using Windows 10.

The blog doesn't use anything else asides from SASS (CSS), typical Hexo tools and the Git deployer for Hexo.

Thankyou.

Question re-phrased: how do I get a blog which has already been deployed (using Git + Git Pages) and bring it's code and it's content to a computer which doesn't have the blog's data, but has Git, Node and Hexo?

1

There are 1 best solutions below

6
On

You can use hexo-git-deployer to upload your blog and your sources

With this config

# _config.yaml
deploy:
  - type: git
    repo: [email protected]:<username>/<username>.github.io.git
    branch: master
  - type: git
    repo: [email protected]:<username>/<username>.github.io.git
    branch: src
    extend_dirs: /
    ignore_hidden: false
    ignore_pattern:
        public: .