# Jenkins Error (Failed to connect to repository in Jenkins: Error performing command: git ls-remote -h) ###### tags: `Devops` `K8s` `Docker` `Jenkins` `Ansible` `Terraform` ## Git Error Jenkins ## Failed to connect to repository : Error performing command: git ls-remote -h https://github.com/micdoodle8/Crossbow_Mod_2.git HEAD ![](https://i.imgur.com/NmDrZ7C.png) 1. Install the Git in your Linux with: if git is not installed ```javascript= # sudo apt-get install git ``` ![](https://i.imgur.com/2S4nrVc.png) ```javascript= # Which git # whereis git ``` ![](https://i.imgur.com/kvp9H81.png) Copy the path /usr/bin/git ![](https://i.imgur.com/P11PtWU.png) Now the Error is gone ![](https://i.imgur.com/LKi3ypk.png)