git fetch single 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>
Example 3: git fetch all after --single-branch
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin