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