git fetch from 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: fetch a specific branch
git fetch <remote_rep> <remote_branch>:<local_branch>