我有一个带有git仓库的家庭服务器。
现在我正在尝试在现有的PHP仓库上配置Jenkins。
我已经正常安装了Jenkins,但在创建作业时出现错误:
Repository URL = /home/git/repositories/testing.git
以下是错误信息:
Failed to connect to repository : Command "git ls-remote -h /home/git/repositories/testing.git HEAD" returned status code 128: stdout: stderr: fatal: '/home/git/repositories/testing.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly
请帮助解决这个问题。
谢谢。
附言:我甚至尝试将我用于远程克隆仓库的URL放入其中:
ssh://git@192.168.1.110:/testing.git
但我仍然遇到错误:
Failed to connect to repository : Command "git ls-remote -h ssh://git@192.168.1.110:/testing.git HEAD" returned status code 128: stdout: stderr: ssh: Could not resolve hostname 192.168.1.110:: Name or service not known fatal: The remote end hung up unexpectedly
我已经正常安装了Jenkins,但在创建作业时出现错误:
Repository URL = /home/git/repositories/testing.git
以下是错误信息:
Failed to connect to repository : Command "git ls-remote -h /home/git/repositories/testing.git HEAD" returned status code 128: stdout: stderr: fatal: '/home/git/repositories/testing.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly
请帮助解决这个问题。
谢谢。
附言:我甚至尝试将我用于远程克隆仓库的URL放入其中:
ssh://git@192.168.1.110:/testing.git
但我仍然遇到错误:
Failed to connect to repository : Command "git ls-remote -h ssh://git@192.168.1.110:/testing.git HEAD" returned status code 128: stdout: stderr: ssh: Could not resolve hostname 192.168.1.110:: Name or service not known fatal: The remote end hung up unexpectedly
无法连接到仓库: 命令 "git ls-remote -h ssh://git@192.168.1.110/testing.git HEAD" 返回状态码 128: stdout: stderr: ssh_askpass: exec(/usr/bin/ssh-askpass): 没有这个文件或目录 权限被拒绝,请重试。 ssh_askpass: exec(/usr/bin/ssh-askpass): 没有这个文件或目录 权限被拒绝,请重试。 ssh_askpass: exec(/usr/bin/ssh-askpass): 没有这个文件或目录 Permission denied (publickey,password). fatal: 远程终端意外挂断
- Alexey Anufriev