use git to fetch other branches from a remote repository code example Example: git fetch remote branch git checkout --track origin/branch_name