how to get all branches from remote github code example
Example: git get all branches and code
git checkout --detach
git fetch origin '+refs/heads/*:refs/heads/*'
git checkout --detach
git fetch origin '+refs/heads/*:refs/heads/*'