git pull on another branch

C++
git fetch origin master:master

Source

Also in C++: