how to pull from a branch in git

C++
git pull origin <branch>
$ git pull origin other-branch
git pull origin other-branch$ git fetch origin other-branch
git checkout new_feature
git pull <remote repo>
Source

Also in C++: