title: Git-Windows-git-pull cannot be used without a working tree
body: <p>I am facing a problem related to  Git on Windows, am unable to pull the changes from the repo on git. Am able to add, commit and push my changes, but not pull. </p>
  
  <p>Its giving me an error:
  fatal: C:**<strong>\Git/libexec/git-core/git-pull cannot be used without a
  working tree.</strong></p>
  
  <p>Upon searching this error i got some links on SO, which asked for removing working tree or working directory environment variables. This links seemed to be more of explaining how git works rather quoting how to solve it and none seemed specific to windows. So am posting this question</p>
  
  <p>Mine is not a bare repository, here is the git config file content:</p>
  
  <pre><code> [core]
      repositoryformatversion = 0
      filemode = false
      bare = false
      logallrefupdates = true
      symlinks = false
      ignorecase = true
      hideDotFiles = dotGitOnly
  [remote "origin"]
      fetch = +refs/heads/*:refs/remotes/origin/*
      url = https://username@github.com/Project/projectname.git
  [branch "master"]
      remote = origin
      merge = refs/heads/master
  </code></pre>
  
  <p>Am using git for first time on windows am using mysgit for it. Do i need to setup other parameters or some environment variables specific to windows, as am using git on ubuntu as well with no special steps.</p>
  
  <p>Also referred this link but doest seems latest as none of things specified in this post exist. <a href="http://ryanalberts.com/402/fatal-cprogram-filesgitlibexecgit-coregit-pull-cannot-be-used-without-a-working-tree/" rel="nofollow">Link</a></p>
  
  <p>Any Advice or help is appreciated. </p>
  
  <p>Thanks, let me know if this question is apt in this forum or Should i post it to SuperUser. </p>
  
  <p><strong>Edit:</strong> </p>
  
  <p>After Eckes post, it helped me find out the error for missing working tree.</p>
  
  <p>The workstation i am working on had one more version of git installed and when i checked for environment variables it was set to it, once i cleaned it, am not getting the previous error any more, but pull is still not working, getting an error: </p>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code> remote: Counting objects: 132, done.
   remote: Compressing objects: 100% (64/64), done.
   remote: Total 104 (delta 74), reused 70 (delta 40)
   Receiving objects: 100% (104/104), 33.05 KiB, done.
   Resolving deltas: 100% (74/74), completed with 24 local objects.
   fatal: write failure on 'stdout': Bad file descriptor
   error: https://github.com/Project/projectname.git did not send all necessary objects
  </code></pre>