I have a repository on Github with 2 branches: master and develop.
master
develop
When I clone the repository and run $ git branch it shows only
$ git branch
git clone fetches all branches of the repository by default. If you want to check out all branches, you need to clone a bare copy of the repository, unset the bare flag and reset it. Let me know if you have further issues.
git clone