I forked a repo on GitHub with many branches. All the branches show up on GitHub. I do this to download the repo:
git clone git-repo-url
cd git-repo
git remote add upstream git-upstream-url
git fetch upstream
This all works fine, but when I try to checkout a branch, it doesn’t work. I only have the master branch. What do I need to do to download the other branches?
You can see the remote branches also by doing:
To checkout a branch, try: