how to git fetch a branch code example
Example 1: fetch a particular branch git
git fetch origin branch-name
Example 2: git fetch remote branch
git checkout --track origin/branch_name
Example 3: how to pull a new remote branch
git fetch <remote> <rbranch>:<lbranch>
git checkout <lbranch>
Example 4: fetch a specific branch
git fetch <remote_rep> <remote_branch>:<local_branch>