Hexo deploy: Fatal: in unpopulated submodule
Today, I checked out the hexo blog in my new laptop. It threw a fatal error when I tried to
hexo deploy it. After trial and error for sometime, I found the quick and easy solution like Try turning it off and on again!
First install the relevant dependencies: (I do deployment to
$ npm install hexo-deployer-git --save
Here comes the universal solution:
$ rm -rf .deploy_git$ hexo g$ hexo d
Make sure you do not version the
.deploy_gitfolder as it is specific to local environment and setup.