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