git fetch all after --single-branch

C++
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
Source

Also in C++: