Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
795 views
in Technique[技术] by (71.8m points)

bash - Failed to connect to repository : Error performing command: git.exe ls-remote -h https://github.com/szabbas/Sample-programs.git HEAD

enter image description hereI am new to programming and trying to work with GIT repository and while configuring with the JENKINS is facing the error. I know it's a silly question but on a beginner point of view I am stuck and can't move forward. Please help me in resolving the error.

I have my code at the GIT repository and trying to build using jenkins. But it is giving the error as : Failed to connect to repository : Error performing command: git.exe ls-remote -h https://github.com/szabbas/Sample-programs.git HEAD

I have done to get the cloning through the GID bash and it is cloning with no issues with the URl. I am also attchingenter image description here the image with the same.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Got here much later because of the error mentioned in the question and for new comers, now you should verify your git path at:

Jenkins > Manage Jenkins > Global Tool Configuration > Git

In my case it didn't have the path to git binary in the PATH environment variable, so I added: C:Program FilesGitin to it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...