git link local branch to remote branch

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

Source

Also in C++: