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