无法连接到存储库:错误执行git命令:git ls -remote -h *** public github url *** head
我已经在EC2实例上安装了Jenkins。当我尝试使用EC2实例配置我的公共GitHub repo时,它会抛出错误: *无法连接到存储库:错误执行git git命令:git ls -remote -h ** public github url ***头
我也重新安装了git插件,但它行不通。我也添加了凭据(希望公共git回购不需要)。有可能的解决方案吗?
I have installed jenkins on ec2 instance. when i try to configure my public github repo with the ec2 instance then it throwing the error: *Failed to connect to repository : Error performing git command: git ls-remote -h **public github url *** HEAD
I reinstalled the git plugin as well but it won't work. I added credentials as well(hope not required for public git repo). Any possible solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否安装了 git插件在jenkins中?
Have you installed Git plugin in Jenkins?
使用以下步骤解决的问题
对于Windows检查C->程序文件→git→bin→git.exe
否则下载它
Mange Jenkins→工具→GIT安装→GIT可执行的路径
在通往git可执行文件的路径中,将本地计算机的路径添加到git.ext
例如:c:\ program Files \ git \ bin
Credits to: https://www.youtube。 com/watch?v = f5qkon50xp8
Problem Solved using the following steps
for Windows check c->Program Files → Git → bin → git.exe
otherwise download it
Mange Jenkins → Tools → Git installations → Path to Git executable
in Path to Git executable add the path of your local computer to git.ext
ex:C:\Program Files\Git\bin
Credits to :https://www.youtube.com/watch?v=F5QKON50xP8