Switching Branches - rsanchez-wsu/jfiles GitHub Wiki
In a normal development workflow you may need to switch back and forth between a few branches.
Command Line
Eclipse
- In Eclipse in your Java perspective right click on your project root and select Team -> Switch To -> Other...
- Select Remote Tracking -> and the branch you want to Checkout/Switch To
- Click "Checkout"
- Click "Checkout As New Local Branch"
- Click "Finish"
- Now you will see your code is now pointing to the branch you switched too.
Now you are able to easily switch back and fourth between branches. All the branches you checkout will now be in your local refs so it is easier to switch back to another branch just by right clicking and selecting Team -> Switch To -> Branch to switch to.