title: NodeJs - Access Git index on Windows
body: <p>I am trying to use the nodejs module, <a href="https://github.com/sentientwaffle/gift" rel="nofollow">gift</a> to read the index of a Git repo. I chose 'gift' because it seemed the most promising on Windows. Does anyone know how to get the status of the Git repo using this module? I basically just want to perform a status command on my Git repo.</p>
  
  <blockquote>
    <p>$ git status</p>
  </blockquote>
  
  <p>Are there any other nodejs Git Modules that work well on Windows?</p>
  
  <p>Thanks!</p>
  
  <p><strong>Solution</strong></p>
  
  <p>After looking through the source I found that Status is an object which is attached to Repo. You use it as described in my selected answer. </p>
  
  <p><em>Windows caveat</em> - I had to <a href="http://blog.countableset.ch/2012/06/07/adding-git-to-windows-7-path/" rel="nofollow">add git to my system path</a> and then <strong>REBOOT.</strong> Gotta love windows :\ Even after adding git to my system path and testing it out in cmd.exe, gift kept throwing error:  </p>
  
  <blockquote>
    <p>command failed: 'git' is not recognized as an internal or external command, operable program or batch file.</p>
  </blockquote>
  
  <p>Once I rebooted all was well.</p>