--- title: 還原 Hexo blog 撰寫環境 tags: Hexo --- # 還原 Hexo blog 撰寫環境 ## 事前準備 確認 Hexo 所需要的環境是否已經安裝完成 * git * Node.js * hexo-cli ## 還原 Hexo 撰寫環境 1. clone 遠端的 Repository ```bash git clone REPOSITORY_URL BLOG ``` 2. 進入 `BLOG` 資料夾,切換至 `SOURCE_BRANCH` ```bash cd BLOG git checkout SOURCE_BRANCH ``` 3. 還原所需要的 npm 套件 ```bash npm install ``` --- ## 參考資料 [Hexo - Restore blog envirement from remote repository.](http://larrynung.github.io/2016/06/12/Hexo-Restore-blog-envirement-from-remote-repository/)