用git部署hexo是出现错误bash: git-receive-pack: command not

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文件存在的情况下还是出现同样的错误,请问应该怎么解决呢?


UYOU
浏览 1104回答 1
1回答

潇湘沐

是用 hexo deploy 命令?报错信息的意思是没有足够的权限。如果是用 ssh 的地址,检查一下公钥的配置,然后使用 ssh -T git@github.com 测试一下。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript