# Error while connecting to GIT

**URL:** <https://community.jenkins.io/t/error-while-connecting-to-git/1201>\
**Category:** Ask a question\
**Created:** [January 10, 2022, 4:28pm UTC](https://community.jenkins.io/t/error-while-connecting-to-git/1201 "2022-01-10T16:28:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mafzal669](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mafzal669/32/791_2.png) [@mafzal669](https://community.jenkins.io/u/mafzal669)\
**Post date:** [January 10, 2022, 4:28pm UTC](https://community.jenkins.io/t/error-while-connecting-to-git/1201/1 "2022-01-10T16:28:32Z")

</div>

Hi,

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.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [January 10, 2022, 4:40pm UTC](https://community.jenkins.io/t/error-while-connecting-to-git/1201/2 "2022-01-10T16:40:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mafzal669](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mafzal669/32/791_2.png) [@mafzal669](https://community.jenkins.io/u/mafzal669)\
**Post date:** [January 10, 2022, 4:54pm UTC](https://community.jenkins.io/t/error-while-connecting-to-git/1201/3 "2022-01-10T16:54:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![saper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/saper/32/138_2.png) [@saper](https://community.jenkins.io/u/saper)\
**Post date:** [April 25, 2022, 9:38am UTC](https://community.jenkins.io/t/error-while-connecting-to-git/1201/4 "2022-04-25T09:38:24Z")

</div>

Please check this thread [Am I integrating GitHub with Jenkins wrong? - #4 by Tennessine](https://community.jenkins.io/t/am-i-integrating-github-with-jenkins-wrong/2156/4) and how to configure git:

> **[Git client](https://plugins.jenkins.io/git-client/#plugin-content-implementations)**
>
> Utility plugin for Git support in Jenkins
