You can fetch all branches from all remotes like this:
$ git fetch --all
Download project
$ git init
$ git remote add upstream https://[email protected]/user/repo.git
$ git fetch --all // download all branches
https://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches