how to pull from master when in a branch git code example
Example 1: how to pull from a particular branch in git
git pull origin <branch>
Example 2: how a to pull a branch in git
$ git pull origin other-branch
Example 3: how to pull from a branch in git
git pull origin other-branch