see all branches on remote git code example
Example 1: git list remote branches
git branch -r
Example 2: get all branches from remote
You can fetch all branches from all remotes like this:
git fetch --all
git branch -r
You can fetch all branches from all remotes like this:
git fetch --all