title: Setting up git in Jenkins for windows and unix machine
body: <p>Hi I have jenkins set up with three unix machines slaves binding with ssh keys and able to do git clone successfully..</p>
  
  <p>Now I want to add windows machine for the same master with ssh concept. I have copied one of the above slave machine ssh keys and did manual git clone command works fine.</p>
  
  <p>Similary I tried to clone git in jenkins. Below are two observations.</p>
  
  <ol>
  <li><p>Updated "git installation" path in "“Manage Jenkins” –> “Configure System  ” to "\C:\Program Files (x86)\Git\cmd\git.com" from "git" as per <a href="http://computercamp-cdwilson-us.tumblr.com/post/48589650930/jenkins-git-clone-via-ssh-on-windows-7-x64" rel="nofollow">http://computercamp-cdwilson-us.tumblr.com/post/48589650930/jenkins-git-clone-via-ssh-on-windows-7-x64</a>. In this case git clone successful for windows machine job, but other unix machine jobs were failed clone with an error..hudson.plugins.git.GitException: Error <strong>performing command: C:\Program Files (x86)\Git\cmd\git.cmd rev-parse --is-inside-work-tree</strong></p></li>
  <li><p>Updated "git installation" path in "“Manage Jenkins” –> “Configure System  ” to "git". In this case unix machine jobs were successfully cloned, but windows machine job was failed to clone with an error...ERROR: <strong>Error cloning remote repo 'origin' : Could not clone ssh://git@.......</strong>. </p></li>
  </ol>
  
  <p>So we need two different path for unix and windows jobs or update one common path in which both the jobs (unix and window) runs successfully.</p>
  
  <p>Any help on this issue highly appreciated..Thanks.</p>