Ive recently swithced from SVN to GIT so maybe Im not understanding properly, but I have two branches. Master and we'll call the other one NewFeature. NewFeature is a branch off Master and is the branch I have been working on. I made several changes to existing files and added new files. In Eclipse I wanted to switch back to Master to see old code so in Eclipse I went to the Git view, right clicked Master under branches and selected "Checkout". Master is now selected with a check mark. I refreshed the project even but all the changes I made to NewFeature are still there and the new files exist in the project as well.
Am I missing something? Is this expected behavior?