Hexo博客部署到服务器---踩坑记录
问题1.执行命令hexo g -d出现Please make sure you have the correct access rights and the repository exists.
遇到的错误:
bash: git-receive-pack: command not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
解决:
ln -s /usr/local/git/bin/git-receive-pack /usr/bin/git-receive-pack
问题2.执行命令hexo g -d遇到错误 ! [remote rejected] HEAD -> main (unpacker error):
遇到的错误:
fatal: sha1 file '<stdout>' write