I'm fairly new to Git and am trying to a grip on what's going on behind the scenes!
Given a remote repository with these branches:
- feature 1
- feature 2
git clone this repository and then type
git branch -a only master is available locally and feature 1 and feature 2 are listed as remote branches.
My understanding is that as a distributed version control system I have all the commits locally, therefore I should have access to all the branches. Given that's the case, why can't I just swap between branches locally? Is this something to do with references/labels?
What haven't I understood?! :D