title: Cannot reset file in Git
body: <p>I have cloned a repository on windows 8 and I have not modified any files. When I do a <code>git status</code> I get the following though:</p>
  
  <pre><code>$ git st
  On branch myFeature
  Your branch is up-to-date with 'origin/myFeature'.
  
  Changes not staged for commit:
    (use "git add &lt;file&gt;..." to update what will be committed)
    (use "git checkout -- &lt;file&gt;..." to discard changes in working directory)
  
          modified:   test.txt
  
  no changes added to commit (use "git add" and/or "git commit -a")
  </code></pre>
  
  <p>Now I want to checkout master but I am not allowed to do that:</p>
  
  <pre><code>$ git co master
  error: Your local changes to the following files would be overwritten by checkout:
          test.txt
  Please, commit your changes or stash them before you can switch branches.
  Aborting
  </code></pre>
  
  <p>I have then tried:</p>
  
  <pre><code>git reset --hard
  git clean -f
  git checkout master
  </code></pre>
  
  <p>same error.</p>
  
  <pre><code>git checkout -- test.txt
  git clean -f
  git checkout master
  </code></pre>
  
  <p>same error.</p>
  
  <p>So I still get the above error when I try to checkout master - and the test.txt file is still marked as being modified.</p>
  
  <p>Below is the output from <code>git config -l</code> (where I have removed some private entries)</p>
  
  <pre><code>$ git config -l
  core.symlinks=false
  core.autocrlf=false
  color.diff=auto
  color.status=auto
  color.branch=auto
  color.interactive=true
  pack.packsizelimit=2g
  help.format=html
  http.sslcainfo=/bin/curl-ca-bundle.crt
  sendemail.smtpserver=/bin/msmtp.exe
  diff.astextplain.textconv=astextplain
  rebase.autosquash=true
  core.autocrlf=false
  core.editor="C:/Program Files (x86)/GitExtensions/GitExtensions.exe" fileeditor
  core.longpaths=true
  core.packedgitlimit=128m
  core.packedgitwindowsize=128m
  core.hidedotfiles=false
  alias.st=status
  alias.co=checkout
  merge.tool=kdiff3
  diff.guitool=kdiff3
  mergetool.kdiff3.path=C:/Program Files/KDiff3/kdiff3.exe
  difftool.kdiff3.path=C:/Program Files/KDiff3/kdiff3.exe
  push.default=simple
  pack.deltacachesize=128m
  pack.packsizelimit=128m
  pack.windowmemory=128m
  color.branch.upstream=cyan
  core.repositoryformatversion=0
  core.filemode=false
  core.bare=false
  core.logallrefupdates=true
  core.symlinks=false
  core.ignorecase=true
  core.hidedotfiles=false
  core.autocrlf=false
  remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
  </code></pre>
  
  <p>Any ideas on how to reset my repository?</p>