(in all the examples below, foo is the name of the branch)
You only see the code for the branch you are currently in. To view a list of branches, type
git branch
To switch to another branch, enter:
git checkout foo
To remove a branch, enter:
git branch -D foo
To merge two branches, go to one of them, then enter:
git merge foo
The idea is that you only see the code that currently matters (the branch you are working on). I find the Github.com tutorial on Git to be pretty clear. Another good resource is the Git Community Book .
One important note: when you pull from a remote repository, you only pull the wizard branch by default. If you want to pull other branches, you will need to specify them directly.
smessing
source share