title: Why am I getting the message, "fatal: This operation must be run in a work tree?"
body: <p>Just installed git on Windows. I set the GIT_DIR variable to be c:\git\ and verified that this environment variable is maintained by cygwin (i.e. echo $GIT_DIR is what it should be).  I went to the folder that I wanted to create the git repository for, let's say c:\www, and then ran:</p>
  
  <pre><code>git init
  git add .
  </code></pre>
  
  <p>Then I get the error:</p>
  
  <pre><code>fatal: This operation must be run in a work tree
  </code></pre>
  
  <p>I'm not sure what went wrong, but the c:\git directory has a config file that says:</p>
  
  <pre><code>[core]
      repositoryformatversion = 0
      filemode = false
      bare = true
      symlinks = false
      ignorecase = true
  </code></pre>
  
  <p>I'm pretty sure this shouldn't be bare and that's our problem.</p>