git how to get details of origin branch code example Example: pull down remote branch git git fetch origin git checkout --track origin/<branch_name>