使用Tortoise git似乎不是一个git存储库

时间:2016-08-24 04:27:24

标签: git

单击git clone时我使用tortoise git 设置网址ssh://git@192.168.3.98/var/www/git.repos/myproject.git

并单击“确定”按钮,显示错误消息

fatal: 'var/www/git.repos/myproject.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

git did not exit cleanly

这条消息。 192.168.3.98/var/www/git.repos/mypoject.git这里。 空间目录。

此错误消息如何解决?

2 个答案:

答案 0 :(得分:2)

请改为尝试:

ssh://git@192.168.3.98:/var/www/git.repos/myproject.git

注意路径前的':'。

答案 1 :(得分:0)

将 SSH 客户端 exe 更改为适用于 Windows 10 计算机的 OpenSSH ssh.exe。

设置 > 网络 > SSH 客户端

C:\Windows\System32\OpenSSH\ssh.exe

上一个值为 C:\Users\xxx\AppData\Local\Programs\Git\bin\sh.exe

注意事项:

  • 我没有在网址中添加 :
  • OpenSSH 已安装。
相关问题