see fetched branch git code example Example 1: git get remote branches git branch -r Example 2: git fetch remote branch git checkout --track origin/branch_name