I am trying to execute the following command from jenkins
git config --global url.https://github.com/.insteadOf git://github.com/
But i am getting the following error
error: could not lock config file %USERPROFILE%/.gitconfig: No such file or directory
Jenkins configuration: Slave: Windows machine, Build step: Execute shell
I tried the following: Changed the file permission, Deleted the file and tried, Manually edited the .gitconfig to have the expected configuraiton.
I am really not sure what is causing this error. Is this because of the path (%USERPROFILE%)?