title: Eclipse prevents me from checking out a branch by asking me to commit .class and .gitignore files
body: <p>Eclipse prevents me from checking out a branch by asking me to commit .class and autogenerated .gitignore file.
  .gitignore is set to prevent those .class files to be versioned. I've already removed them with rm -r --cached . but eclipse keeps telling me it can't checkout because of uncommitted change (useless to say that committing them is not a solution).</p>
  
  <p>However, if I checkout from bash, everything's ok.</p>
  
  <p>What's happening?</p>