Search code examples
gitjenkinsdevopscicdjenkins-git-plugin

Failed to connect to repository : Error performing git command: git ls-remote -h ***public github url *** HEAD


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 enter image description here

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?


Solution

  • Have you installed Git plugin in Jenkins?