I have two branches: master and web and I have my working copy in one directory. In web branch I've the folder foo. I worked on foo's files and I committed the job. Then I switched to master with:
git checkout master
But foo folder is still there in my working copy. It looks strange! Git status on master branch tells me the all is fine. But the folder foo does not belong to master branch. Even If I do
git checkout .
web folder stays in my working copy. To fix I rm web folder. Now, git status keeps telling me the everything is fine and so it is.
But it's very strange, what could have happened and how can I avoid that?
 
    