I cloned a Git repository, which contains about five branches. However, when I do git branch I only see one of them:
$ git branch
* master
Make sure all the remote branches are fetchable in .git/config file.
In this example, only the origin/production branch is fetchable, even if you try to do git fetch --all nothing will happen but fetching the production branch:
[origin]
fetch = +refs/heads/production:refs/remotes/origin/production
This line should be replaced by:
[origin]
fetch = +refs/heads/*:refs/remotes/origin/*
Then run git fetch etc...