混帐:无法从远程存储库中读取(Git : Could not read from remote re

2019-11-04 23:17发布

我试图把我的OVH的服务器上裸远程的Git仓库。 当我试图推,我得到以下错误:

fatal: '/git/repo.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

到目前为止,我已经试过一切,包括计算器上的每一个岗位

  • 我给自己定一个公钥/私钥。 这似乎并不成为问题。 如果我尝试用无效键,该消息是不一样的
  • 我试着直接从库服务器上的推动和它的工作原理
  • 我试着在服务器上设置chmod命令777无变化
  • 我试图更改SSH代理,该消息是相同的
  • 这是我的git的配置文件

     [remote "origin"] url = ssh://username@ssh.cluster014.ovh.net:/git/repo.git fetch = +refs/heads/*:refs/remotes/origin/* puttykeyfile = D:\\Dev\\ovh-git.ppk 

我相信这是一个服务器的配置问题,因为我可以从服务器上的服务器推送。

注意 :

  1. 在服务器上,Git版本是2.1.4 ,我的本地版本是2.18.0
  2. 我已经试过以下SO帖
    • 混帐:致命的:无法从远程存储库中读取
    • 致命的:不会出现是一个Git仓库
    • 还有很多...

你能给我一些输入到找到一条出路?

编辑:这是输出ls -ld在储存库

drwxr-xr-x+ 7 username users 10 juil.  2 08:45 git/repo.git/

Answer 1:

如果您想设置一个Git仓库的OVH的服务器上,远程URL的格式应该是这样的:

url = ssh://username@ssh.cluster014.ovh.net:homez.xxx/name/git/repo.git


文章来源: Git : Could not read from remote repository