git pull from another branch

C++
git pull origin <branch>
git fetch origin master:master
git pull origin <branch-name>git merge A

Source

Also in C++: