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