I'm new to using Git, and let's say I have a repository in GitHub with 2 branches; the **master** branch and a branch called **foo**. Initially I cloned only the master branch using:

> 
> git clone --single-branch --branch master <repository\_link>
> 
> 
> 

And when I run `git branch -a`, it accordingly showed me 2 branches, **master** and **remotes/origin/master**.

My question is, how can I now clone/add the **foo** branch into my local repository? So that when I rerun `git branch -a` it will show me 4 branches; the 2 masters, a **foo** branch and its **remotes/origin/foo**.

Thanks in advance :)