How do I fix error "Failed to connect to GitHub repository"?

Getting error “Failed to connect to GitHub repository” while putting path of GitHub project. What should I do next?

Hi Alex,

For this error, you’ll need to set git.exe path from your locally installed git in Global tool configuration in Jenkins.

Please follow the step below:

Manage Jenkins–> Global tool configuration–> git → Path to Git executable (for e.g C:\Program Files\Git\bin\git.exe)