I am using EGit and am aware that Checkout (on the Git perspective) allows me to switch between branches already in my repository (see What is the difference between git clone and checkout? ). However there is also the option "Switch To". When I "Switch To" another branch, it appears to me that all of the files stay the same, but just the "branch label" at the top of the page changes. I am not viewing the code on the branch I have switched to, but am viewing the code from my previous branch.
So what is the purpose of "Switch To" in EGit and when would I use it?