git command to fetch all branches from repo code example
Example: get all branches from remote
You can fetch all branches from all remotes like this:
git fetch --all
You can fetch all branches from all remotes like this:
git fetch --all