Failed to connect to repository : Command "git.exe ls-remote -h --

Hello everyone,
I’m getting error in configuring connection between Jenkins and GitLab.
I created Access Token in my GitLab remote repository and added it in Jenkins as Credential (Manage Jenkins > Manage Credentials > System > Add Credentials) but still connection between Jenkins and GitLab fails and brings error as attached screenshot shows.

Kindly assist me to resolve this issue.
N.B: I’m using Windows

1 Like