git fetch a different branch code example
Example 1: fetch a particular branch git
git fetch origin branch-name
Example 2: fetch a specific branch
git fetch <remote_rep> <remote_branch>:<local_branch>
git fetch origin branch-name
git fetch <remote_rep> <remote_branch>:<local_branch>