Error while connecting to GIT


I am trying to create a simple pipeline job with Jenkinsfile placed in GIT SCM. However when I am providing URL of my public GIT repo to fetch the jenkinsfile I am getting below error.

Failed to connect to repository : Error performing git command: git ls-remote -h <my_repo>

Can someone please help in getting this resolved.

What’s the next part of that error msg? That’s the part that tells you what’s going on

That is the only message I can see as soon I give the URL in the box. This is on the jenkins pipeline section of a job when I want to pull Jenkinsfile.