I cloned a Git repository, which contains about five branches. However, when I do git branch I only see one of them:
git branch
$ git branch * master
Just these three commands will get all the branches:
git clone --mirror repo.git .git (gets just .git - bare repository) git config --bool core.bare false git reset --hard