git brachget all code example
Example 1: how to see all branches in git
git branch -a
Example 2: get all branches from remote
You can fetch all branches from all remotes like this:
git fetch --all
git branch -a
You can fetch all branches from all remotes like this:
git fetch --all