用git部署hexo是出现错误bash: git-receive-pack: command not found怎么回事?

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.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troublesh...
Error: 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.

谷歌的结果是路径问题,需要建立链接文件。但是执行之后,在/usr/bin/git-receive-pack文件存在的情况下还是出现同样的错误,请问应该怎么解决呢?

阅读 4.7k
3 个回答

是用 hexo deploy 命令?报错信息的意思是没有足够的权限。
如果是用 ssh 的地址,检查一下公钥的配置,然后使用 ssh -T git@github.com 测试一下。

npm install hexo-deployer-git --save

安装下git依赖包。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题