git command to get all branches code example
Example 1: how to see all branches in git
git branch -a
Example 2: get all the branch in git
git fetch --all
Example 3: git get all branches and code
git checkout --detach
git fetch origin '+refs/heads/*:refs/heads/*'