git see all remote branches code example
Example 1: show all remote branches git
git branch -r
Example 2: git fetch all remote branch
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
Example 3: git list remote branches
git branch -r
Example 4: git branch list
git branch -a
git branch -r
git branch
Example 5: get all remote branches
git fetch --all
Example 6: get all branches from remote
You can fetch all branches from all remotes like this:
git fetch --all