I want to my hexo blog backed up, and sync between several working environments at the same time. Since my blog contains large assetes such as images and attachments, GitHub is not an option and I would like to have the blog synced to my NAS.
At first I am using RSync, but it doesn’t have any version control. After googleing it turns out that GitHub can use a directory as the remote, in my case a directory on my NAS. Therefore, I can have both the version control of the git, and the large file support without setup a git server.
Create a bare git repo on the NAS
Init a repo in the hexo directory and commit the content:
Add the directory of NAS as remote:
Clone the project to another working environment: